oonid / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

HttpError: <HttpError 400 when requesting https://www.googleapis.com/bigquery/v2/projects/ #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1.Tried making an authetication call to bigquery

expected output is a hello message after authentication?i get an error

HttpError: <HttpError 400 when requesting 
https://www.googleapis.com/bigquery/v2/projects/ClientId/datasets/samples/tables
/natality?alt=json returned "Invalid project ID 'ClientId'. Project IDs must 
contain 6-63 lowercase letters, digits, or dashes. IDs must start with a letter 
and may not end with a dash.">

Den i tried replacing the ClientId with the Project Id but it gives another 
error

HttpError: <HttpError 404 when requesting 
https://www.googleapis.com/bigquery/v2/projects/hellodashboard87/datasets/sample
s/tables/natality?alt=json returned "Not Found: Dataset 
hellodashboard87:samples">

i'm using python2.7 on Ubuntu.Oauth2client ver 1.0 and googleappengine 1.7.3

Here is the code
http://stackoverflow.com/questions/13244750/httperror-httperror-400-when-request
ing-https-www-googleapis-com-bigquery-v2

Original issue reported on code.google.com by italespi...@gmail.com on 6 Nov 2012 at 5:31

GoogleCodeExporter commented 8 years ago
Hello,

From what I can tell from the code comments, you're using the Client ID for the 
Project ID.  

The Client ID will look like: <project id>.project.googleusercontent.com
The Project ID and Project Number should be able to be used interchangeably.  
You can find these values on the overview page for your project in the Google 
APIs console (code.google.com/apis/console).  You can also grab this from the 
number you find in the URL when looking at the APIs console.

ie, in this URL, the project ID/number is '227819609728'
https://code.google.com/apis/console/?pli=1#project:227819609728:overview

I don't believe this is actually a bug-- so let's take this back to your 
stackoverflow question for resolution:
http://stackoverflow.com/questions/13244750/httperror-httperror-400-when-request
ing-https-www-googleapis-com-bigquery-v2

We'll close out this issue.  We can re-open later if it turns out to be an 
actual bug.

Cheers,
-Ryan

Original comment by ryanb...@google.com on 6 Nov 2012 at 6:54

GoogleCodeExporter commented 8 years ago
Thanks Ryan!

Original comment by jcgregorio@google.com on 6 Nov 2012 at 6:57