Comments (6)
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..
from python-docs-samples.
It may be that because it's using the http client directly, instead of the service, that the proper scope isn't being used.
from python-docs-samples.
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).
from python-docs-samples.
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.
from python-docs-samples.
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)
.
from python-docs-samples.
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.
from python-docs-samples.
Related Issues (20)
- BigQuery Connections code sample is not cleaning up after itself
- generative_ai.imagen.edit_image_mask_free_test: test_edit_image_mask_free failed HOT 1
- securitycenter.snippets.snippets_notification_test: test_update_notification_config failed HOT 1
- iam.api-client.custom_roles_test: test_edit_role failed HOT 5
- iam.api-client.custom_roles_test: test_disable_role failed HOT 6
- iam.cloud-client.snippets.test_roles: test_retrieve_role failed HOT 5
- iam.cloud-client.snippets.test_roles: test_delete_undelete_role failed HOT 5
- iam.cloud-client.snippets.test_roles: test_list_roles failed HOT 5
- iam.cloud-client.snippets.test_roles: test_edit_role failed HOT 6
- iam.cloud-client.snippets.test_roles: test_disable_role failed HOT 6
- securitycenter.snippets.snippets_bigquery_export_test: test_update_bigquery_exports failed HOT 1
- iam.api-client.quickstart_test: test_quickstart failed HOT 1
- people-and-planet-ai.geospatial-classification.e2e_test: test_predict failed HOT 10
- functions.v2.deploy-function.test_deploy_function: test_create_cloud_function failed HOT 1
- discoveryengine.multi_turn_search_sample_test: test_multi_turn_search failed HOT 1
- generative_ai.test_gemini_examples: test_gemini_count_token_example failed HOT 1
- iam.cloud-client.snippets.test_service_account: test_service_account_rename failed HOT 1
- generative_ai.test_gemini_examples: test_gemini_pdf_example failed HOT 1
- iam.api-client.access_test: test_set_policy failed HOT 1
- documentai.snippets.handle_response_sample_test: test_process_document_layout failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-docs-samples.