There is any way to pass vars into a local function?
I'm running a function with the CLI command appwrite run function --function-id
but I can't see any value in context or context.req
and when I log it I see this error: SyntaxError: JSON Parse error: Unexpected EOF
Vars are passed via a .env file
Logging req when there isn't a valid JSON body will throw an error
I see, I don't have any .env file, this should be documented here right?
Recommended threads
- Realtime Error Invalid query: Syntax err...
I was test driving Self-Hosted Appwrite for my use with Swift IOS apps as a backend while back and after successful trials, I started to move to incorporate int...
- [v1.8.1] Getting error "(role: applicati...
... but that scope doesn't exist. I am trying to get a function to run and modify tables in the database dynamically. I set everything up and eventually got: ...
- Scheduled function silently stopped firi...
Function is scheduled `* * * * *` and is `enabled: true`, but Appwrite Cloud has stopped queueing executions. Last execution: **2026-05-30 00:47 UTC** (~46h...