aisonet / google-api-python-client

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

HttpError 400 in jobs.get(jobId,ProjectId) even with right values. #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when I call jobs.get(jobId,ProjectID);
I get:
 "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Invalid project ID 'My_Project_ID:job_6c2e8cc358ad42d2ad55ef266d342b68'. Project IDs must contain 6-63 lowercase letters, digits, or dashes. IDs must start with a letter and may not end with a dash.",
    "reason" : "invalid"
  } ],
  "message" : "Invalid project ID 'My_Project_ID:job_6c2e8cc358ad42d2ad55ef266d342b68'. Project IDs must contain 6-63 lowercase letters, digits, or dashes. IDs must start with a letter and may not end with a dash."

If I use the exact projectID and jobID in the "try it" section in the google 
developer guide in here:
https://developers.google.com/bigquery/docs/reference/v2/jobs/get

I get the job back as expected!

If projectId or jobId wasn't right then it wouldn't have worked in the google 
developer site also.
What can cause this behavior?

Original issue reported on code.google.com by eladv...@gmail.com on 3 Dec 2012 at 3:42

GoogleCodeExporter commented 9 years ago
moved to java project.

Original comment by eladv...@gmail.com on 3 Dec 2012 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 3 Dec 2012 at 4:22