Skip to content

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

Closed

Description

@jabubake

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>

Activity

  1. ludoch commented on Jun 13, 2017

    @ludoch
    Contributor

    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?

  2. lesv commented on Jul 17, 2017

    @lesv
    Contributor

    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.

  3. added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Jul 17, 2017
  4. jabubake commented on Jul 31, 2017

    @jabubake
    ContributorAuthor

    Fixed via #2284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.running on app engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions