Skip to content
Back

Cloud functions only work locally

  • 0
  • Self Hosted
  • Functions
WhMonkey
12 Feb, 2025, 19:11

Hello!

I was testing my app, and I changed nothing about my cloud function however it suddenly broke. I get these errors (most of the time it's the first one):

Internal curl errors has occurred within the executor! Error Number: 28. Error Msg: Operation timed out after 19001 milliseconds with 0 bytes received\nError Code: 500

and Internal curl errors has occurred within the executor! Error Number: 52. Error Msg: Empty reply from server\nError Code: 500.

It seems that if I run this cloud function through the CLI, it works fine. And sometimes it works when running it through the cloud function, but most of the time it doesn't.

Here's my code (yes, I have tried to ask chatgpt to help but it was kinda useless but it did add logging). The code is in the attached file.

TL;DR
Cloud function only works when run locally, encountering errors like "Operation timed out" or "Empty reply from server" when run via cloud. Checked code and tried asking for help, but no success. Run cloud function through CLI and it works fine. Files attached. Solution: Check for any issue with the cloud server configuration.
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