-
Notifications
You must be signed in to change notification settings - Fork 232
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
NPE because HTTP request initialized before setting URL #43
Comments
/cc @aozarov |
A fix for this has been merged into google-auth-library-java by @pongad. @ajkannan, @aozarov can you verify that it fixes the problem?
Once this is verified, we will either release a new version or patch the existing one. |
Sure, taking a look now. |
@anthmgoogle @aozarov The NPE issue is indeed fixed. I am however running into some issues using authentication from App Engine. When I’m authenticated with Google Cloud SDK and I try running my app on the dev app server (a local mock of production), I get an error message saying “The Application Default Credentials are not available” because I’m not running on Compute Engine and because I don’t have the GOOGLE_APPLICATION_CREDENTIALS environment variable set. I thought according to this documentation that the SDK credentials were supposed to be used first, before looking for App Engine credentials? I’m also having an issue in production with App Engine where I get the same error message as on the local development server (“The Application Default Credentials are not available”). Authentication is working fine from Compute Engine and when using Google Cloud SDK on my desktop without App Engine. |
Thanks for confirming the issue is fixed. Let's keep this issue open Can you start a new issue or issues about the App Engine problem or On Tue, Nov 17, 2015 at 11:17 AM, Ajay Kannan notifications@github.com
|
Sure thing, will do. |
This bug should be fixed by v0.3.1 . Could you verify? |
Yup, I've verified that the bug is fixed by v0.3.1. |
After updating google-auth-libraries to 0.3.0, we noticed the following stacktrace when using application default credentials:
I think the issue was introduced in this commit. Also see https://github.com/google/google-auth-library-java/blame/master/oauth2_http/java/com/google/auth/http/HttpCredentialsAdapter.java#L61
The HTTP client's request factory seems to initialize the request before it sets the URL.
The text was updated successfully, but these errors were encountered: