GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pubsub emulator authinterceptor question · Issue #1381 · googleapis/google-cloud-java

pubsub emulator authinterceptor question #1381

New issue
Copy link
New issue
Copy link
Closed
Closed
pubsub emulator authinterceptor question#1381
Copy link
Assignees
garrettjonesgoogle
Labels
api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@fondberg
fondberg
opened on Nov 9, 2016
Issue body actions

I get the following when subscribing to a topics subscription locally:

...
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: Header value is null
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: invalid or missing token
[pubsub] Nov 09, 2016 1:46:17 PM com.google.cloud.iam.testing.v1.shared.authorization.AuthInterceptor interceptCall
[pubsub] INFO: Authentication interceptor: Header value is null
...

Given the below information, what could be wrong?

My java code works with the actual cloud service but when using the following code:

PubSubOptions.Builder optionsBuilder = PubSubOptions.newBuilder().setProjectId("project");
optionsBuilder.setAuthCredentials(AuthCredentials.noAuth());
optionsBuilder.setHost("localhost:8989");
PubSub pubsub = optionsBuilder.build().getService();

//then using pubsub.pullAsync(...) for the actual pulling of messages

gcloud pubsub emulator started like this:
gcloud beta emulators pubsub start --host-port=0.0.0.0:8989

Versions:
gcloud-java-pubsub -> 0.5.1

$ gcloud --version
Google Cloud SDK 133.0.0
alpha 2016.01.12
beta 2016.01.12
bq 2.0.24
bq-nix 2.0.24
core 2016.11.01
core-nix 2016.11.01
gcloud
gsutil 4.22
gsutil-nix 4.22
pubsub-emulator 2016.08.19

Activity

Next
  1. mziccard commented on Nov 9, 2016

    @mziccard
    mziccard
    on Nov 9, 2016
    Contributor
    More actions

    Nothing is going wrong. When using the emulator we pass no credentials and this is what the logs are telling you, that no authentication header was provided with any of the requests.

    Code running against the emulator is working as expected right?

  2. fondberg commented on Nov 9, 2016

    @fondberg
    fondberg
    on Nov 9, 2016
    Author
    More actions

    Oh, it was spitting out soo much that I thought it was wrong. I will test. Maybe a good idea to disable that particular logging (many lines per second)

  3. mziccard commented on Nov 9, 2016

    @mziccard
    mziccard
    on Nov 9, 2016
    Contributor
    More actions

    @fonzy2013 I believe there might be some users interested in that log (the interceptor also logs the header if one is set in the request).

    @hbchai could we make the logging level FINE for AuthInterceptor?

  4. fondberg commented on Nov 9, 2016

    @fondberg
    fondberg
    on Nov 9, 2016
    Author
    More actions

    Just for knowledge, when running in pull mode in gcloud-java I get more entries then my console can handle... I think it would be great if it could be tuned down or collapsed into 1 line instead of 3

  5. hbchai commented on Nov 17, 2016

    @hbchai
    hbchai
    on Nov 17, 2016
    More actions

    @mziccard Good idea about using FINE - will do that.

  6. garrettjonesgoogle
    added
    triaged for beta
    api: pubsubIssues related to the Pub/Sub API.
    on Nov 23, 2016
  7. garrettjonesgoogle commented on Dec 8, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Dec 8, 2016
    Contributor
    More actions

    Looks like nothing more is necessary for this.

  8. garrettjonesgoogle
    closed this as completedon Dec 8, 2016
  9. Ghazgkull commented on Oct 11, 2017

    @Ghazgkull
    Ghazgkull
    on Oct 11, 2017
    More actions

    @garrettjonesgoogle Would you mind summarizing the resolution of this one? As a user of the emulator, how do I get it to stop logging this warning?

    It's particularly a problem when using docker-compose to run a number of containers, as the pubsub container spam consistently scrolls away the output from other containers.

  10. asnare commented on Dec 8, 2017

    @asnare
    asnare
    on Dec 8, 2017
    More actions

    It looks like @hbchai said (paraphrased) "Great, we'll change it to FINE" but @garrettjonesgoogle then closed it before the change was made?

  11. garrettjonesgoogle commented on Dec 20, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Dec 20, 2017
    Contributor
    More actions

    I think I didn't look carefully enough and assumed the message from @hbchai was from a user, but now I see it was from the implementer of the emulator. I will re-open so we can check the log levels in google-cloud-java code.

  12. garrettjonesgoogle
    reopened this on Dec 20, 2017
  13. pongad
    self-assigned this
    on Jan 9, 2018
  14. pongad
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jan 9, 2018
  15. 25 remaining items

  16. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore: Java 8 unit test to build code in Java 17 and run tests on Jav…

    75866a6
  17. chingor13
    added 2 commits that reference this issue on Mar 12, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (#1381…

    108d160

    chore: remove DocFX profile (#1381)

    b732fab
  18. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (goo…

    b1d38d3

    chore: bump urllib3 from 1.26.16 to 1.26.17 in /synthtool/gcp/templat…

    b7b4722
  19. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (#1381…

    d34a034

    deps: update dependency com.google.apis:google-api-services-storage t…

    c22cce7
  20. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (#1381…

    3676886

    deps: update dependency com.google.apis:google-api-services-storage t…

    18132bb
  21. meltsufin
    added 4 commits that reference this issue on Apr 29, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (#1381…

    f4ec317

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    505cac4

    chore: Enable Size-Label bot in all googleapis Java repositories (#1381…

    cc74175

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    e92438a
  22. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    chore: Enable Size-Label bot in all googleapis Java repositories (goo…

    cdcade4

    chore(deps): update dependency com.google.cloud:google-cloud-bigtable…

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.