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 — "Empty or missing scope not allowed" in load_data_by_post · Issue #126 · GoogleCloudPlatform/python-docs-samples

"Empty or missing scope not allowed" in load_data_by_post #126

New issue
Copy link
New issue
Copy link
Closed
#127
Closed
"Empty or missing scope not allowed" in load_data_by_post#126
#127
Copy link
Assignees
jerjou
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@Falydoor
Falydoor
opened on Oct 15, 2015
Issue body actions

Hello

I had an exception "Empty or missing scope not allowed" when running the sample load_data_by_post.

I fixed it by creating the scope after getting credentials :

credentials = GoogleCredentials.get_application_default()
scope = ['https://www.googleapis.com/auth/bigquery']
credentials = credentials.create_scoped(scope)

Regards

Activity

Next
  1. theacodes
    assigned
    jerjou
    on Oct 15, 2015
  2. jerjou commented on Oct 15, 2015

    @jerjou
    jerjou
    on Oct 15, 2015
    Contributor
    More actions

    Thanks for the bug report! I'm having trouble reproducing - the discovery.build() call in the line following, that creates the bigquery service object, should have filled in the scope for you (though what you did is perfectly valid as well).

    Do you know what version of the google-api-python-client library you're using?
    Also - what environment are you running the code in? (eg local dev, google compute engine, app engine, etc)

    It looks like the code to automatically fill in the scope was added on 05/2014, which should be in pip, etc..

  3. theacodes commented on Oct 15, 2015

    @theacodes
    theacodes
    on Oct 15, 2015
    Contributor
    More actions

    It may be that because it's using the http client directly, instead of the service, that the proper scope isn't being used.

  4. Falydoor commented on Oct 15, 2015

    @Falydoor
    Falydoor
    on Oct 15, 2015
    Author
    More actions

    I'm using the version 1.3.2 for the google-api-python-client and I'm on a local dev environment.
    I'm loading data into my BigQuery project using this sample in python.

    And I had other issues that I fixed by comparing the POST request who was made in the BigQuery web client and the one in this sample.

    If you have time, you can check my commit here because I had to do some changes (the big one was to add a "\n" before the last boundary).

  5. jerjou commented on Oct 15, 2015

    @jerjou
    jerjou
    on Oct 15, 2015
    Contributor
    More actions

    Oh weird. I guess it's only using the service object to poll for the job status. I wonder why the sample is working for me... anyway, will update.

  6. theacodes commented on Oct 15, 2015

    @theacodes
    theacodes
    on Oct 15, 2015
    Contributor
    More actions

    preferably, we should find a way to make this sample not use raw POST
    request (this is a really ugly sample). I know I filed a bug for this
    somewhere.

    On Thu, Oct 15, 2015 at 1:15 PM Jerjou [email protected] wrote:

    Oh weird. I guess it's only using the service object to poll for the job
    status. I wonder why the sample is working for me... anyway, will update.

    —
    Reply to this email directly or view it on GitHub
    #126 (comment)
    .

  7. jerjou
    closed this as completedin #127on Oct 15, 2015
  8. jerjou commented on Oct 15, 2015

    @jerjou
    jerjou
    on Oct 15, 2015
    Contributor
    More actions

    Okay- updated the sample to actually use the python sdk the way I had originally thought it was being used ^_^; This should hopefully make the scope issue obsolete.

    Will update the relevant doc as well.

  9. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 7, 2020
  10. ivanmkc
    added 2 commits that reference this issue on Nov 3, 2022

    chore(deps): update dependency google-cloud-datalabeling to v1.2.1 (#126

    610295a

    chore(deps): update dependency google-cloud-datalabeling to v1.2.1 (#126

    8791e61
  11. engelke
    added a commit that references this issue on Nov 9, 2022

    chore(deps): update dependency google-cloud-secret-manager to v2.5.0 (#…

    d7aca0b
  12. 6 remaining items

  13. dandhlee
    added a commit that references this issue on Jan 26, 2023

    test: log message.data for debugging (#126)

    05e6472
  14. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore(deps): update dependency google-cloud-storage to v1.37.1 (#126)

    541c67e
  15. nicain
    added a commit that references this issue on Mar 1, 2023

    migrate code from googleapis/python-dlp (#9091)

    86b0054
  16. telpirion
    added 2 commits that reference this issue on Mar 13, 2023

    test: log message.data for debugging (#126)

    b3ff256

    migrate code from googleapis/python-dlp (#9091)

    b09bf5d
  17. cojenco
    added a commit that references this issue on Apr 12, 2023

    chore(deps): update dependency google-cloud-media-translation to v0.7…

    50e0889
  18. dandhlee
    added a commit that references this issue on Apr 13, 2023

    chore(deps): update dependency google-cloud-media-translation to v0.7…

    98d7194
  19. parthea
    added 2 commits that reference this issue on Jun 8, 2023

    chore(deps): update dependency google-cloud-video-stitcher to v0.6.1 (#…

    0abc5aa

    chore(deps): update dependency google-cloud-video-stitcher to v0.6.1 (#…

    c8feda1
  20. dizcology
    added a commit that references this issue on Jun 16, 2023

    chore(deps): update dependency google-api-core to v2.10.0 (#126)

    48bcb36
  21. dizcology
    added a commit that references this issue on Jul 11, 2023

    chore(deps): update dependency google-api-core to v2.10.0 (#126)

    f22d37e
  22. leahecole
    added a commit that references this issue on Jul 11, 2023

    chore(deps): update dependency google-api-core to v2.10.0 (#126)

    07851eb
  23. Linchin
    added a commit that references this issue on Aug 18, 2025

    chore(deps): update dependency google-cloud-bigquery-storage to v2.2.1 (

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

Metadata

Metadata

Assignees

  • @jerjou
    jerjou

Labels

🚨This issue needs some love.triage meI really want to be triaged.

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.