An internal curl error has occurred within the executor! Error Msg: Operation timed out My code:
def main(req, res):
return res.send("Hello World")
I'm running Appwrite 1.2.1
What do the docker logs for the executor say?
Building container : 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
Build Stage completed in 15 seconds
[Error] Type: Exception
[Error] Message: Runtime not found. Please create the runtime.
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 469
Building container : 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
Build Stage completed in 1 seconds
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
Executing Runtime: 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Connection refused
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 541
Executing Runtime: 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Operation timed out
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 544
Running maintenance task ...
Successfully removed 65196a7a4ab351c8b23e-6571cbbc0b008bd19a81
also, I found this log from a container with the same name as the deployment ID
Traceback (most recent call last):
File "/usr/local/src/server.py", line 1, in <module>
from flask import Flask, request, jsonify
File "/usr/local/src/userlib/runtime-env/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
from .app import Flask as Flask
File "/usr/local/src/userlib/runtime-env/lib/python3.10/site-packages/flask/app.py", line 28, in <module>
from . import cli
File "/usr/local/src/userlib/runtime-env/lib/python3.10/site-packages/flask/cli.py", line 18, in <module>
from .helpers import get_debug_flag
File "/usr/local/src/userlib/runtime-env/lib/python3.10/site-packages/flask/helpers.py", line 16, in <module>
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/src/userlib/runtime-env/lib/python3.10/site-packages/werkzeug/urls.py)
okay I found the problem
so Flask 2.0.1 apparently isn't compatible with Werkzeug 3.0.1
I had to put Werkzeug==2.3.8 in the requirements.txt to override the one installed in the build
I can say it's solved, but I need to use this workaround until I upgrade to the latest Appwrite.
Recommended threads
- 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...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...