-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate and vision API's seem to ignore ApplicationDefault credentials #2158
Comments
This may be because we are just including google-cloud-translate & google-cloud-vision, not google-cloud |
Makes sense, I can check soon to see if updating the dependencies fixes this. |
For vision and translate, switching to google-cloud did not resolve the ADC issue. |
Some integration tests on this repo appear to depend on using |
Done |
I've succeeded in reproducing the issue. I was surprised to find that pointing Still investigating ... |
Strangely, I can no longer reproduce the issue in the Previously, I observed consistently that the content of the key files was clearly implicated, as explicitly referencing the
did not resolve the issue, but replacing its content with that of the service account file
did resolve the issue. The general issue persists, but nondeterministically, only in some of the https://stackoverflow.com/questions/43746016/google-vision-api-tatuscode-resource-exhausted There is also a report of this occurring in googleapis/google-cloud-node#1756 I suspect we are just hitting backend limits that differ for the accounts associated to the respective credentials. @lesv Are you still able to reproduce the issue in |
Update: after re-running tests several times, I now see the I'm going to close this as WAI. I assume it would not be a persistent problem to run integration tests with a service account, but if so, let's open a separate issue. |
Epilog: @lesv please review GoogleCloudPlatform/java-docs-samples#741 when you get a chance (I'm not able to assign reviewers). |
I can hit this consistently: RESOURCE_EXHAUSTED: Insufficient tokens for quota 'DefaultGroup' and limit 'CLIENT_PROJECT-100s' of service 'language.googleapis.com' Using: gcloud auth application-default login What is the correct path to authenticate and not hit this error? Needless to say this is super frustrating and a few externals are hitting this. Please advise - thanks! |
@ericandrewschmidt Could you please open a new issue? The present issue is already closed, and your problem might not be related. |
Will do - thanks. |
When I was testing gh/gcp/java-docs-samples, by going to the root folder and setting
GOOGLE_CLOUD_PROJECT=java-docs-samples-testing
and being authenticated as me in thegcloud
command line tool. Then doingmvn clean verify
the first problem is ontranslate
and it's fixed by settingGOOGLE_APPLICATION_CREDENTIALS
.This is wrong.
@gguuss FYI
The text was updated successfully, but these errors were encountered: