Skip to content
Back

Internal curl errors has occurred within the executor! Error Number: 52.

  • 0
  • Functions
  • Cloud
Sommm
4 Aug, 2025, 17:41

Recently, I tried executing a function in my project.

Got this error in failed requests randomly: Internal curl errors has occurred within the executor! Error Number: 52. Error Msg: Empty reply from server\nError Code: 500

The flow of the function is like this:

Check for request path and method > Connect To MongoDB > Test Connection > If passed then move to request path validation > Get data from MongoDB according to request path > Format Correctly > Send back to client.

Exceptions are handled at almost every step which logs what exactly went wrong.

But I can confirm this happened when I executed the function after a long time (About 5 days)

The full error message is attached in the photos.

All of the Failed executions have the same error message. And you can see that the attractions route that was failing suddenly started working.

One of my initial thoughts were that it might have been the cluster that got paused due to inactivity? but it doesn't seem like it.

TypeScript
                  1 CPU 512 MB Ram
                  15 Sec Timeout (checked if that was the issue but its not)```
TL;DR
Error Number 52 is causing Internal curl errors within the executor. The error was encountered randomly during function execution after a few days of inactivity. The function flow involves request path validation, connecting to MongoDB, and handling exceptions. The theory of cluster inactivity causing the error was considered but ruled out. **Solution**: Check for any backend connectivity issues with MongoDB or potential server-side problems causing the error. If necessary, review the timeout settings in the system.
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