Hey, my node JS app randomly crash with the following error
/root/AdFront/backend/node_modules/node-appwrite/lib/client.js:204
throw new AppwriteException(text, response.status, "", text);
^
AppwriteException [Error]: error code: 520
at Client.call (/root/AdFront/backend/node_modules/node-appwrite/lib/client.js:204:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.listDocuments (/root/AdFront/backend/node_modules/node-appwrite/lib/services/databases.js:1658:16)
at async Timeout.UpdateImg [as _onTimeout] (/root/AdFront/backend/index.js:126:18) {
code: 520,
type: '',
response: 'error code: 520'
}
Node.js v21.6.1
I'm confused as this is the first time I see this error and the documentation dont mention it, and it seems to crash after a certain amount of time
Here's the line 126 of the code
const response = await databases.listDocuments("ads_db", "ads_list", [Query.equal('index', currentIndex)]);
Cheers
Are you using Cloudflare? seems like error 520
has something to do with them.
Appwrite itself doesn't produce error 520
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...