Skip to content
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

Pub/Sub Publisher requires additional auth dependency on App Engine Standard J8 #2144

Closed
jabubake opened this issue Jun 13, 2017 · 3 comments
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. running on app engine

Comments

@jabubake
Copy link
Contributor

Publisher times out on App Engine Standard Java 8, work around is to include

<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.auth</groupId>
        <artifactId>google-auth-library-credentials</artifactId>
        <version>0.7.0</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
@jabubake jabubake added the api: pubsub Issues related to the Pub/Sub API. label Jun 13, 2017
@ludoch
Copy link
Contributor

ludoch commented Jun 13, 2017

Do we fully understand now (i.e we are not going via the appIdentify GAE API path anymore but a new path using the missing google-auth-library-credentials classes?)
Why don't we have a user friendly error message for this case? Are we swallowing exceptions?

@lesv
Copy link
Contributor

lesv commented Jul 17, 2017

The customer wrote me and said:

Did an experiment bypassing the App Default Credentials on AppEngine:

See https://github.com/hienle-hps/getting-started-java/blob/pubsub_manual_token/appengine-standard-java8/helloworld/src/main/java/com/example/gaejava8standard/HelloAppEngine.java#L70

Steps:

  1. Use gcloud auth application-default login on local box and run Main.java (see above project) to dump your local bearer token.
  2. Replace TOKEN in the code above with this token and then gradle appengineDeploy.

Results:
The google-cloud PubSub client works.

@lesv lesv added the priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. label Jul 17, 2017
@jabubake
Copy link
Contributor Author

Fixed via #2284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. running on app engine
Projects
None yet
Development

No branches or pull requests

5 participants