Skip to content
Back

Function Deployment Failing – RenokiCo\PhpK8s\Kinds\K8sPod Exception

  • 0
  • Web
  • Cloud
Blob
20 May, 2025, 07:27

Hey, I’m trying to deploy a Node.js function (via GitHub and also manually tested) and I keep getting this error during deployment:

TypeScript
Exception::__construct(): Argument #1 ($message) must be of type string, RenokiCo\PhpK8s\Kinds\K8sPod given

What I'm trying to do: I'm building a metadata ingestion function that loops through image files in an Appwrite storage bucket, extracts EXIF or PNG text metadata (e.g. prompt, model, software), and saves that info to a collection in the database. It works fine locally, but never even boots in Appwrite Cloud.

Details:

  • Runtime: Node.js 18 (I also tried 22)
  • Entrypoint: src/main.js
  • Root directory: .
  • Happens both with GitHub CI and manual deploy
  • The function never initializes — looks like a platform-level issue with Appwrite Cloud (syd region)

Here’s the error URL: http://682c1f3a1997601381e6.syd.appwrite.run

Thanks in advance 🙏

TL;DR
Function development for a metadata ingestion task fails to deploy due to a RenokiCo\PhpK8s\Kinds\K8sPod exception. The issue seems to be platform-related as environment variables are correctly set. The function, which works locally, experiences deployment errors in Appwrite Cloud. The error message specifies that an argument must be of type string. Runtime is Node.js, entrypoint is `src/main.js`, and root directory is `.`. The function fails to initialize in Appwrite Cloud (syd region) whether deployed via GitHub or manually.
Blob
20 May, 2025, 07:33

Just to add — I’ve already double-checked that all environment variables (like APPWRITE_API_KEY, BUCKET_ID, DATABASE_ID, etc.) are correctly set in the function settings. So I don’t think this is an issue on my end with missing config.

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