luantn2 / 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

Exception being thrown by CalendarService.CalendarList.List().Execute(): "The data is invalid" #389

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new instance of CalendarService class.
2. Call CalendarService.CalendarList.List().Execute();
3. Exception is thrown at Line 96 of ClientServiceRequest.cs.

Not sure of the exact version, but the zip file I downloaded is named 
google-api-dotnet-client-1.5.0-beta.source.zip.

I'm running it on Windows 7, with Visual Studio 2010 and .NET Framework 4.0 
(Full).

This was working fine till yesterday. Now it is not. I have tried generating 
new Client IDs as well, to no avail.

Original issue reported on code.google.com by SSTest...@gmail.com on 12 Sep 2013 at 6:43

GoogleCodeExporter commented 9 years ago
The same error is popping up with Google Tasks API too.

Original comment by SSTest...@gmail.com on 12 Sep 2013 at 10:19

GoogleCodeExporter commented 9 years ago
First of all I recommend you to work with NuGet. You can download the exact 
NuGet package you want to work with (e.g. Google.Apis.Calendar) and then 
install the Google.Apis.Authentication package as well.

Regarding your error - I just ran our sample (Calendar.VB.ConsoleApi) which 
uses the Calendar API and it works for me. Can you check that also, please?

The sample is available here: 
https://code.google.com/p/google-api-dotnet-client/source/browse?repo=samples#hg
%2FCalendar.VB.ConsoleApp

Original comment by pele...@google.com on 12 Sep 2013 at 2:19

GoogleCodeExporter commented 9 years ago
Thanks for getting back on this. After a long day of attempting different 
things, it finally turned out that I needed to change the STORAGE variable's 
value to make it work. The following line in the function GetAuthorization() 
was changed from:

    const string STORAGE = "google.samples.dotnet.calendar";

to 

    const string STORAGE = "google.samples.dotnet.calendar2";

and it started working. Can you shed some light please?

Original comment by SSTest...@gmail.com on 12 Sep 2013 at 4:50

GoogleCodeExporter commented 9 years ago
We are working hard on this days to improve simnifically the OAuth2 flows.
I'm sorry that's it so complicated, but I'm pretty sure that couple of weeks 
from now, it's going to be awesome. We are planning to support regular .NET 
applications, but in addition also WinRT and WP.

I'm closing this issue for now, please feel free to reopen it or add any 
additional question \ data 

Original comment by pele...@google.com on 13 Sep 2013 at 1:20