Rank 3: Container
I started getting this error quite often and it is affecting my platform a lot, it says "Operation timed out after 30001 milliseconds with 0 bytes received with status code 0\nError Code: 0"
What is happening?
Votes
0
Replies
12
Participants
Unknown
Messages
13
Rank 3: Container
I started getting this error quite often and it is affecting my platform a lot, it says "Operation timed out after 30001 milliseconds with 0 bytes received with status code 0\nError Code: 0"
What is happening?
Are you cloud or self hosted?
Rank 3: Container
Im self hosted on a digitalocean droplet
What version? Are you getting any errors in the container?
Rank 3: Container
My appwrite version is 1.4.7 and let me check my container to see if there are any errors
Do you by any chance remember the commands I have to do in the console to see the container logs? I'm somewhat new to Docker
docker compose logs appwrite
Rank 3: Container
Admin
are you executing a function from your function?
Rank 3: Container
I am not executing another appwrite function within my function, but I am fetching a document from a collection
It started happening with some last changes I made to the function:
The first is that it decrypts the payload that I sent to the function using a library called crypto-js
And the second thing I added is that would get an appwrite
document and then after having the response from the appwrite document, I fetch an API and finally return the res.json
After those 2 changes the problem started to happen, I hope this information is useful to find out what the problem is
Admin
so you're function is probably taking longer than 30s to execute synchronously, which is no longer allowed
Admin
i highly suggest avoiding using then. There could be some unexpected behavior with how the promises are handled
Rank 3: Container
Oh okay I'll change that
Rank 3: Container
It could be because of the function that decrypts the payload... maybe it takes longer than expected, I'll see how I can fix it