Back

An internal curl error has occurred within the executor! Error Msg: Operation timed out

  • 1
  • Functions
Pavan
24 Sep, 2023, 17:37

I get this error while executing the function with python as a runtime, the function just calls a Rest API, the function always ends up with status code 500

TL;DR
User is experiencing an internal curl error within the executor with a "operation timed out" message. They are asking for help on resolving the issue. Suggestions given by other users: - Check if the syntax used is correct, as every AppWrite function must end with response.json or response.send return. - Check the AppWrite version being used, as if it's below 1.4, a different syntax needs to be used. - Share code for debugging purposes. - Check the container logs if using a self-hosted AppWrite version. - Put the code inside a try-except block to catch any errors. - Verify if the function
Susmita
24 Sep, 2023, 17:46

Check if your have properly deployed the function or not

Pavan
24 Sep, 2023, 18:08

Yes I did, the deployment and build was successful

rafagazani
24 Sep, 2023, 18:59

Are you using cloud appwrite?

rafagazani
24 Sep, 2023, 19:00

Put your code inside try exception try to return the error

rafagazani
24 Sep, 2023, 19:02

If the appwrite is self-hosted, you can see the container logs. The default is project-name-id-deploy

rafagazani
24 Sep, 2023, 19:02

Docker logs name-project-83839odidejo

safwan
25 Sep, 2023, 05:04

Can you share some code?

Pavan
25 Sep, 2023, 06:40

This is my code and in previous function I've used try catch, but the same error...

Pavan
25 Sep, 2023, 06:40
Pavan
25 Sep, 2023, 06:40

Even the simple code doesn't work like printing..

Pavan
25 Sep, 2023, 06:41

Can I invite you to debug the function please..?

safwan
25 Sep, 2023, 06:53

Are you on cloud or self-hosted?

safwan
25 Sep, 2023, 06:54

What version of Appwrite are you using?

safwan
25 Sep, 2023, 06:55

If you're below 1.4, you need to follow the syntax like so

Pavan
25 Sep, 2023, 08:00

It is self hosted and v1.4.x

safwan
25 Sep, 2023, 08:04
Pavan
25 Sep, 2023, 09:39

It shows runtime error

Pavan
25 Sep, 2023, 09:39
rafagazani
25 Sep, 2023, 13:38

Every AppWrite function must end with response.json or response.send return

safwan
26 Sep, 2023, 03:33

did you use the syntax i shared?

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