GuilleOriginal post
Moderator
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
Summary
Developers are seeking guidance on passing variables to a local function in the Appwrite platform. They are encountering issues with the context.req object leading to a JSON parse error. The solution is to ensure that the required variables are passed via a .env file as per the documentation.