Skip to content
Back

Bug Report: Appwrite Cloud Functions – ERR_INVALID_CHAR on Every Execution

  • 0
  • 1
  • Functions
  • Web
  • Cloud
28 Jun, 2026, 11:26

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

TL;DR
Critical bug in Appwrite Cloud Functions executing in Singapore region (sgp.cloud.appwrite.io) leads to instant failure with TypeError [ERR_INVALID_CHAR]. User code is not executed due to issue in open-runtimes wrapper code. All executions in the project fail, even the minimal tests. The error arises in server.js:281 showing an invalid character in header content. Solution for the bug is not provided.
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