Back

not able to find the error in my cloud funtion code as nothing shows in logs nor in error

  • 1
  • Flutter
  • Functions
Ansh
4 Jun, 2023, 17:08

all it shows in error is this "An internal curl error has occurred within the executor! Error Msg: Operation timed out"

TL;DR
There is an error in the cloud function code, but it is not showing in the logs or errors. One solution is to wrap the code in a try/catch block and ensure that res.json() or res.send() is called exactly once. Also, check how long the function executes before it times out. One user had a similar issue and found the mistake in their return values. Another user suggested refreshing the page to see if it is still processing. If the timeout variable is increased, the processing time may be longer. To increase the timeout variable, go to function settings in the appwrite console. The error message "An internal curl
Dakshie
4 Jun, 2023, 17:40

Try increasing the value of timeout variable from function settings in appwrite console

naveen
4 Jun, 2023, 17:51

I had the same issue, i now tried increasing the timeout variable, but now it is showing processing for a very long time

Dakshie
4 Jun, 2023, 17:55

is it still processing? Did you try refreshing the page?

naveen
4 Jun, 2023, 18:06

i made a mistake in returning the values

naveen
4 Jun, 2023, 18:06

Now its working, thank you

Drake
4 Jun, 2023, 21:18

Try to wrap your code in a big try/catch and ensure res.json() or res.send() is called exactly once.

Also, how long does it execute before it times out?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more