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
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...