So I define a global env - GCP_CREDENTIALS in global env of my appwrite projcet and refer to it in my functions as
gcp_creds: JSON.PARSE(GCP_CREDENTIALS)
to use it.
This is what I define it as -
{ "type": "service_account", "project_id": "abc-csas-xxx123", "private_key_id": "12345", ...}
Everything works fine I can access these in my functions until, I open the editor or make any changes in any global env, after updating anything in this env, my GCP_CREDS are automatically processed as
{ type: service_account,project_id: ace-coda-xxx123, private_key_id: 12345, ...}
And now my functions cant read it.
How do I fix this. Either by stopping whatever processing appwrite is doing to these or by altering the access method in my functions.
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...
- Server Down
Appwrite services are down. When will they start working again?