and then deployed it, but it could never find Appwrite
I was unaware there were build commands
what version of the CLI are you using? appwrite -v
I actually upgrade it suspecting that, it said 4.0 was available but I ran brew upgrade appwrite
and it seemed to install but didn't seem to change anything, lemme check 2.0.2
which is pretty oudated I take it?
also I love the new logo
i don't recommend using brew...there is probably a bug. i recommend installing using NPM
copy
so after upgrading using NPM (and uninstalling homebrew one) I keep getting an error when I try to do anything after like, 30-45s that just says, "Error: Unexpected 'G'"
4.1.0
now
Were you connecting to cloud?
yes
@Steven still getting weird errors in Appwrite
export default async ({ req, res, log, error }) => {
// Why not try the Appwrite SDK?
//
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY);
const database = new Databases(client);
log("Hello, Logs!");
error("Hello, Errors!");
// The `req` object contains the request data
// `res.json()` sends a JSON object back to the client
try {
log("Request Body: ", JSON.stringify(req.body));
const user = await database.getDocument("maindb", "members", req.body);
return res.json(user);
} catch (error) {
error(`Error Caught: ${JSON.stringify(error)}`);
return res.json({ error: error.message });
}
};
oh
duh
was this a function from before 1.4?
oh right error is being overridden
yeah I'll make it solved
[SOLVED] New Functions (node-18.0) Cannot Find package node-appwrite
Recommended threads
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...