Web Developer
Bug Report: Appwrite Cloud Functions – ERR_INVALID_CHAR on Execution
Summary:
There is a critical platform-level bug affecting Appwrite Cloud Functions in the Singapore region (sgp.cloud.appwrite.io). Every execution fails instantly with a TypeError [ERR_INVALID_CHAR] originating from the open-runtimes wrapper code, preventing user code from running.
Environment:
Plan & Region: Pro / SGP (Singapore)
Project ID: 6a40ae2b00108ba5efe5
Runtimes: node-20.0, node-22 (v5 Architecture)
Stack Trace:
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["append"]
at ServerResponse.setHeader (node:_http_outgoing:703:3)
at action (/usr/local/server/src/server.js:281:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /usr/local/server/src/server.js:26:5
Key Details:
Platform Bug: The crash occurs at server.js:281 within 0.01s–0.3s, before the user handler ever executes.
Minimal Test Fails: A basic function returning only new Response("ok") with zero dependencies still triggers the exact same error.
100% Failure Rate: Affected across all 10 deployed functions in this project.
Successful Builds: Deployments and builds finish successfully; the crash only occurs upon execution.
Header Clue: The Node.js error flags "append", suggesting the open-runtimes wrapper is passing an invalid string or method name into response.setHeader().
Error Message:
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["append"]
at ServerResponse.setHeader (node:_http_outgoing:703:3)
at action (/usr/local/server/src/server.js:281:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /usr/local/server/src/server.js:26:5