BigQuery: Unexpected cancellation at Google.Apis.Upload.ResumableUpload
See original GitHub issueHi guys,
Sometimes we catch unexpected cancellation at Google.Apis.Upload.ResumableUpload during uploading CSV file using method UploadCsvAsync, but we know that file uploaded successfully. So exception is not GoogleApiException type, what should we do in this case?
Our code something like that:
try
{
var pollSettings = BuildPollSetting(timeout);
var job = await client.UploadCsvAsync(datasetId, tableId, null, input, options, cancellationToken).ConfigureAwait(false);
var result = await job.PollUntilCompletedAsync(pollSettings: pollSettings, cancellationToken: cancellationToken).ConfigureAwait(false);
result.ThrowOnError();
}
catch (GoogleApiException exc)
{
await HandleGoogleException(exc, cancellationToken).ConfigureAwait(false);
}
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Error messages | BigQuery
Responses from the BigQuery API include an HTTP error code and an error object in the ... stopped, 200, This status code returns...
Read more >API uploads | BigQuery
To upload data files more reliably, you can use the resumable upload protocol. This protocol allows you to resume an upload operation after...
Read more >Google Drive API returning unexpected results on ...
I'm trying to follow Google's documentation for Google Drive API interaction, specifically to perform a resumable upload.
Read more >Upload updated a file on Google Drive with Python using ...
Coding example for the question Upload updated a file on Google Drive with Python using Drive API V3 does not work.
Read more >Incident affecting Google BigQuery
Customers making calls to the streaming API using BigQuery observed elevated error rates in US regions for a period of 5 hours. The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m afraid I’m on vacation today, but I’ll look at this first thing on Monday.
Great - I’ll close this issue in that case. Thanks very much for confirming!