An internal curl error has occurred within the executor! Error Msg: Http invalid protocol\nError Code: 500
This is the error I just got while executing my function. There's no other error or log, and no idea where this happened or why.
Anyone got any ideas?
It is supposed to create about 1800 documents or something like that, through 4 collections.
It only partially creates them, like some collections get documents, some are empty, and that error occurs.
Curious why would it happen because exec time is set to 120 seconds and it was working just finr yesterday..
Some questions:
- how long does it run for?
- What version of Appwrite are you on?
- What is your
_APP_FUNCTIONS_MAINTENANCE_INTERVALenv var set to?
It is in cloud so it's 1.4.3 it runs for about 30-33 seconds _APP_FUNCTIONS_MAINTENANCE_INTERVAL what is this?
@Steven
If you are able to see some other logs in the cloud
Here's project ID 651097a3dacb8d5a5c5e
And function ID 6510ac4b1043e0009acb
oh cloud. nvm
how much time between executions? What exactly is the execution history?
Message I sent is the only execution log
does it fail consistently?
maybe something is wrong with the function code?
I wouldn't know at this point because all utilities that generate collections have same code . And they were working yesterday
But I will double check I guess 🤷
I'll have to pick this up tomorrow
@Steven
Quick update.
I just ran my function without doing any changes to it.
It now added users, added collections, but added 0 documents and failed with the same error.
Yesterday it added 800+ documents in 2 collections, out of 4.
So It is safe to assume that my code isn't wrong after all?
It works outside a function yah?
I think it's literally just timed out
😅
I think we cap functions to no longer than x number of seonds
@Meldiron
What's our cap?
But I added 120s to the timeout
Where did you set the timeout
If it's self-hosted, there's 2 locations
Recommended threads
- cant resume project
Invalid console fingerprint event i try man time
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...