-
Notifications
You must be signed in to change notification settings - Fork 182
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
bq_auth() with ADC authentication yields "Error in if (self$params$as_header)" #336
Comments
I think this should be fixed now, if you install dev gargle from GitHub:
however, I don't have any user creds stored in this manner, so have not tested it personally. I'd appreciate hearing back from you, after you try this. Note that this type of credential + storage method is semi-deprecated from the Google side: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
If you are using ADC in this way, you should probably also seriously consider switching to a service account token. I think that's going to have better support long-term by Google and gargle + bigrquery. |
Also, your credentials should be auto-discovered, so once we straighten the |
Thanks, it does indeed work now, and noted on the service account! The last thing to mention for others is a correction to gargle's Git URI:
|
Oh, right thanks. I'll fix that. It's bigrquery that lives below r-dbi, d'oh. |
I'm having some trouble authenticating with my application default credentials - that it appears to find successfully - using bigrquery 1.2.0:
Result:
Result:
- Error in if (self$params$as_header) { : argument is of length zero
In versions < 1.2.0 I had circumnavigated this same error by assigning
token$params$as_header
to a boolean value:although
bq_auth(token = token)
now fails with the aforementioned error message.The text was updated successfully, but these errors were encountered: