
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
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- Broken message
https://github.com/appwrite/appwrite/issues/10081 I just realized that I can just build appwrite myself, was this bug fixed in latest dev release?
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
