
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
- Appwrite Datetime Fields Display as "N/A...
I'm facing an UI issue on appwrite's collection documents list. A related question is opened by me on stackoverflow. https://stackoverflow.com/questions/796559...
- CORS errors with storage bucket
I have a javascript file in the storage bucket and I used the view endpoint in an `src` attribute of a `<script>` tag. But I am getting the `net::ERR_BLOCKED_BY...
- Oauth2-Error 400Invalid `success` param:...
My code: > await new Account(client).createOAuth2Session(OAuthProvider.Google, 'https://www.mydomain.online/home', 'https://www.mydomain.online'); I ha...
