
TypeScript
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:195:15)
at async Databases.getDocument (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/databases.js:1749:16)
at async Module.default (file:///usr/local/server/src/function/src/main.js:28:18)
at async execute (/usr/local/server/src/server.js:208:16)
at async action (/usr/local/server/src/server.js:225:7)
at async /usr/local/server/src/server.js:14:5```
NodeJS 16.0
Appwrite v1.6.0 (self hosted)
The function in question:
```try {
client.setEndpoint('https://mywebsite.com:6000/v1')
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY);
const result = await databases.getDocument(
database_id,
collection_id,
id
);
log(result);
} catch (e) {
error(e);
}```
Possibly relevant, if I use APPWRITE_FUNCTION_API_ENDPOINT as the endpoint I instead receive a generic Nginx 404 error response - the same behaviour if I leave off the port in the current endpoint.
TL;DR
Error message "fetch failed" is appearing when trying to get a document in NodeJS 16.0 using Appwrite v1.6.0 (self-hosted). Switching the endpoint to APPWRITE_FUNCTION_API_ENDPOINT causes a generic Nginx 404 error. Recommended threads
- Running uvicorn app in python function
Hi guys, i developed an uvicorn app with an 'app' object in my main file but no matter which entrypoint I choose in the function settings it doesnt start the se...
- webhook signature verification
I'm trying to use a payment services webhook and verifying the signture. I'm having some trouble with processing payload. the webhook.verify function in stand...
- how to create function which runs in asy...
How to run the a function one after another like if the multiple use calls a function at the same time then the each use should be provided one by one not paral...
