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
- Sydney Cloud Sites: App Git deployment a...
Project ID: rentwize-db The app Site fails after the build completes with a missing build archive error. Site id: app Framework: TanStack Start SSR Output dir...
- Active Running Project Deletion Alert Em...
Hi , I received an email alert from Appwrite today stating “your project will be deleted within 14 days if no action is taken,” though I have been actively usin...
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload