question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BigQuery: Unexpected cancellation at Google.Apis.Upload.ResumableUpload

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jskeetcommented, Feb 16, 2018

I’m afraid I’m on vacation today, but I’ll look at this first thing on Monday.

0reactions
jskeetcommented, Feb 20, 2018

Great - I’ll close this issue in that case. Thanks very much for confirming!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found