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
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- Realtime not processing messages
When subscribing to realtime events of database, the client's websocket receives the messages in the websocket feed, but doesn't call the specific message handl...