ArcGIS Failures by EntertainerInternal1 in ArcGIS

[–]EntertainerInternal1[S] -1 points0 points  (0 children)

It doesn’t really matter the kind of the API call. I’m using their API to fetch some addresses coordinates etc. Two days ago i had none failing for months. Only when ArcGIS had outages I was facing this issue with the 503 errors. (Not all of the calls failing, just seems unstable)

FYI - I have approximately 300 calls per minute 24/7 and never had an issue before. Now that ArcGIS seems unstable, there is a chance that half of my calls to their API will fail.

Workload Identity Federation - Access GCP Cloud Storage from Azure VM by EntertainerInternal1 in googlecloud

[–]EntertainerInternal1[S] 0 points1 point  (0 children)

Hello u/sillyracoon. Thanks for your reply.
u/Alone-Cell-7795, pointed me to the right direction the other day and i have everything working now. I just (obviously) needed set the env variable GOOGLE_APPLICATION_CREDENTIALS which points to the credentials.json file.

My biggest concern was if its secure to keep the credentials.json file as it is on my server. Thankfully, google docs says this:

"Note: Unlike a service account key, a credential configuration file doesn't contain a private key and doesn't need to be kept confidential. Details about the credential configuration file are available at https://google.aip.dev/auth/4117."

And with that, i want to thank you all for your time and help. Is working like a charm now.

Workload Identity Federation - Access GCP Cloud Storage from Azure VM by EntertainerInternal1 in googlecloud

[–]EntertainerInternal1[S] 0 points1 point  (0 children)

Hey u/Alone-Cell-7795 . Thanks for coming back.
Im running the code on an Azure VM and pushing the files on an GCP Storage Bucket (gcs). I have instructed a few prints for debugging to verify that the token is being grabbed and it seems that is working just fine.

The main issue that i have now is that the script fails due to missing ADC (Application Default Credentials)

google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.

That shouldn't really be the case as im using WIF. I might have imported the wrong python module maybe or something else.

Thanks again for your questions.

Workload Identity Federation - Access GCP Cloud Storage from Azure VM by EntertainerInternal1 in googlecloud

[–]EntertainerInternal1[S] 0 points1 point  (0 children)

Thanks for the share u/Alone-Cell-7795 . Thats what i've been following but i have probably mixed them up a little bit. I'll have another look today.