ssett / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

youtubeService.Videos.Insert() hides exceptions #456

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call youtubeService.Videos.Insert() expecting an HTTP 401
2. Check the result of the Insert() call's IUploadProgress.Exception property

Expected result
A reference to an exception related to (and with a message pertaining to) the 
HTTP 401 error

Actual result
System.ArgumentNullException: Value cannot be null.
Parameter name: baseUri
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
   at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Google.Apis.Upload.ResumableUpload`1.<UploadCoreAsync>d__e.MoveNext() in 

What version of the product are you using?
1.8.1

What is your operating system?
Windows 7

What is your IDE?
VS 2010

What is the .NET framework version?
4

Please provide any additional information below.
Youtube is making me angry by requiring a google plus account.

Original issue reported on code.google.com by TERMINAT...@ogilvy.com on 8 Apr 2014 at 4:55