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 — Fix for pubsub scope error. by daspecster · Pull Request #2909 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Dec 29, 2016

Copy link
Copy Markdown
Contributor

Closes #2908

I'm not sure this is the right way to go about fixing this. But it works!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daspecster daspecster added the api: pubsub Issues related to the Pub/Sub API. label Dec 29, 2016
@daspecster daspecster assigned tseaver and dhermes Dec 29, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 29, 2016
@dhermes

dhermes commented Dec 29, 2016

Copy link
Copy Markdown
Contributor

Indeed. DERP!

I was assuming that (also here)

client._credentials is client._connection._credentials

in #2874 (and maybe #2875). But that isn't true: the Connection constructor calls google.auth.credentials.with_scopes_if_required.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Dec 29, 2016

Copy link
Copy Markdown
Contributor

@daspecster I'm not really sure what to do here. Pub/Sub and Logging are "half-way" to just removing Connection altogether (or having a very different / stripped down version of the Connection). So this change needed to be made as part of that effort, the effort just got halted by Santa.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Dec 29, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

🎅 💥

Ok, I can try and continue with the "extraction". But if you want too, I'll close this and keep rolling with other things.

Edit: I just realized that my emoji look like I'm blowing up santa...I was going for Santa blowing up pubsub and logging...ha

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

@daspecster I think the right fix (for now) is to just use client._connection._credentials (here and here).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster
Fix pubsub system tests failure due to credentials.
7df7bc0
@daspecster
daspecster force-pushed the fix-pubsub-grpc-credentials branch from 8312d29 to 7df7bc0 Compare January 3, 2017 16:57
@daspecster

daspecster commented Jan 3, 2017

Copy link
Copy Markdown
Contributor Author

Update pushed! I ran the system tests and they passed so that should do the trick!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

👍 LGTM to merge (Travis is green already)

daspecster reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster
daspecster merged commit 61d63e5 into googleapis:master Jan 3, 2017
@daspecster
daspecster deleted the fix-pubsub-grpc-credentials branch January 3, 2017 17:14
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Jan 12, 2017
@dhermes
Fixing credentials without scopes issue in logging.
8675e88
See:
https://travis-ci.org/GoogleCloudPlatform/google-cloud-python/builds/191433056#L2195

This is a band-aid for now. I caused it in googleapis#2875 and will roll-back this
roll-back at a later time.

@daspecter fixed a similar breakage in googleapis#2909.
@dhermes dhermes mentioned this pull request Jan 12, 2017
Fixing credentials without scopes issue in logging. #2934
Merged
@dhermes dhermes mentioned this pull request Feb 24, 2017
Upgrading all versions for umbrella release. #3068
Merged
19 tasks done
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@daspecster
Merge pull request googleapis#2909 from daspecster/fix-pubsub-grpc-cr…
cc10ac3
…edentials

Fix for pubsub scope error.
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Fixing credentials without scopes issue in logging.
b0dfd7b
See:
https://travis-ci.org/GoogleCloudPlatform/google-cloud-python/builds/191433056#L2195

This is a band-aid for now. I caused it in googleapis#2875 and will roll-back this
roll-back at a later time.

@daspecter fixed a similar breakage in googleapis#2909.
@theacodes theacodes unassigned dhermes Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@dhermes
Fixing credentials without scopes issue in logging.
5b0945f
See:
https://travis-ci.org/GoogleCloudPlatform/google-cloud-python/builds/191433056#L2195

This is a band-aid for now. I caused it in #2875 and will roll-back this
roll-back at a later time.

@daspecter fixed a similar breakage in #2909.
parthea pushed a commit that referenced this pull request Mar 2, 2026
@daspecster
Merge pull request #2909 from daspecster/fix-pubsub-grpc-credentials
58c8298
Fix for pubsub scope error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

gRPC pubsub missing scope error

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@daspecster @dhermes @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.