sijocherian / google-bigquery

Automatically exported from code.google.com/p/google-bigquery
0 stars 0 forks source link

Google API does not return actual error #267

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am using .NET client library (Google BigQuery in C# application with Service 
Account Authorization).

What steps will reproduce the problem?
1. Create one new BigQuery Table.
2. Add New Load Job using .NET client library with Different Schema.

What is the expected output? What do you see instead?

It throws one common error as 'Value cannot be null. Parameter name: baseUri', 
it hides actual error. Using Fiddler tool only to get the actual error. It does 
not work with production environment, because client does not know what to do. 
So Request to return actual error message in exception.

What version of the product are you using? On what operating system?

Google BigQuery, Windows 7 OS.

Thanks.

Original issue reported on code.google.com by raj.selv...@gmail.com on 19 Jun 2015 at 7:16

GoogleCodeExporter commented 8 years ago
Thanks for the feedback. Can you provide a bit more detail about what exactly 
you were trying to do, and what the real error was? Code snippets and/or job 
IDs would be very helpful.

Original comment by jcon...@google.com on 22 Jun 2015 at 4:31

GoogleCodeExporter commented 8 years ago
Hi, 

Actually I am trying to load CSV file into Existing Table, In which table 
contains two 'REQUIRED' fields.

However i could not able to build new schema in c# code, so i decided to get 
the TableSchema from the Query Response from the Query "Select * From TableName 
Limit 1".

From the Query Response TableSchema all the field mode as only 'NULLABLE' 
(Missing two 'REQUIRED' fields), i did't notice that until i found the issue.

Now i am trying to load my CSV import job with the table schema, it throws 
error as 'Value cannot be null. Parameter name: baseUri', at the end of two 
days fighting i found that the issue originally caused by Schema mismatch from 
the use of FIDDLER tool.

How Google missed out the important error handling? Even developer also does 
not understand the actual error? How did you design that one from World Leading 
Company?

Thanks,
Selvakumar S 

Original comment by raj.selv...@gmail.com on 23 Jun 2015 at 5:44

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the additional info. Unfortunately, I'm not sure there's enough here 
to debug the problem.

It sounds like the C# client library is referencing a null value somewhere when 
generating a request to be sent to the server. If there's a stack trace, or a 
simpler repro, or more specifics about where exactly in the request sequence 
the error occurs, then it might help identify the problem.

Original comment by jcon...@google.com on 23 Jun 2015 at 3:50