sijocherian / google-bigquery

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

Getting a Vague 500 response - Unexpected. Please try again. #205

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an insertAll API Request from PHP AppEngine
2.
3.

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

I would expect to see a successful Big Query Response. Instead I see the 
following: Error calling POST 
https://www.googleapis.com/bigquery/v2/projects/imperial-signer-658/datasets/met
rics/tables/email_events/insertAll: (500) Unexpected. Please try again.

What version of the product are you using? On what operating system?
Using the google api client library on AppEngine

Please provide any additional information below.
It seems that a large percentage of our request go through but sometimes they 
are not. This data is pulled from webhooks we receive from our email provider 
and their payloads should not exceed 1MB.

Please let me know what this error means, it is very vague. If there is 
something we can do to mitigate the issue on our end that would be great.

We do notice some data inconsistency, but we aren't sure to what extent our 
requests are failing.

Original issue reported on code.google.com by e...@restorationmedia.com on 2 Jan 2015 at 6:37

GoogleCodeExporter commented 9 years ago
About the 500 error:
500 errors are mostly transient and caused by internal service hiccups. 
User-side caching and retry are usually sufficient ways to mitigate the 
problem. 
More information:
https://cloud.google.com/bigquery/streaming-data-into-bigquery#troubleshooting

>We do notice some data inconsistency, but we aren't sure to what extent our 
requests are failing.
Could you please give us more details about that?  What's the symptom? Any job 
id(s) we can investigate? 

Original comment by che...@google.com on 2 Jan 2015 at 11:03

GoogleCodeExporter commented 9 years ago
In regards to more information on the above note:

The symptom is we’re missing data that we know should be in there. We’ve 
estimated loss around .03 - .4%, which is not ridiculous considering the size 
of data we are working towards, but we’d like to keep as much data as 
possible.

Does the PHP SDK automatically retry in the event of a 500??
Unfortunately I don’t have any specific Job Id’s to show. I will look into 
a retry loop in the event of failed inserts.

Thank you for the quick response. :D

Original comment by e...@restorationmedia.com on 3 Jan 2015 at 1:23

GoogleCodeExporter commented 9 years ago
About your data loss, do you re-insert the "failed" row(s) in case of a success 
response (insertErrors)?
https://cloud.google.com/bigquery/docs/reference/v2/tabledata/insertAll#response

According to the PHP SDK document 
(https://developers.google.com/api-client-library/php/), I don't think it 
automatically retry at 500.

Please let us know if you have more questions.
Thank you!

Original comment by che...@google.com on 5 Jan 2015 at 8:41