Contact response from a Calendar Query

59 views
Skip to first unread message

David Burke

unread,
Sep 2, 2015, 3:46:00 AM9/2/15
to Google Calendar API
Hi There,

We have been using the Contact and Calendar API successfully for years via the c# client libraries (Google.Apis.Calendar.v3.1.9.2.1330). An unusual error has started happening recently. It appears that a calendar API call is getting a contact API response (see below). Has anyone come across this before?



Failed to parse response from server as json [<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005' xmlns:gContact='http://schemas.google.com/contact/2008' gd:etag='W/&quot;DEICQ3c9fyt7I2A9XRJTGUU.&quot;'><id>....</id><updated>2015-08-31T02:02:42.967Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/></entry></feed>] ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.ReadInternal()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Google.Apis.Json.NewtonsoftJsonSerializer.Deserialize[T](String input) in c:\ApiaryDotnet\default\Src\GoogleApis.Core\Apis\Json\NewtonsoftJsonSerializer.cs:line 120
   at Google.Apis.Services.BaseClientService.<DeserializeResponse>d__2`1.MoveNext() in c:\ApiaryDotnet\default\Src\GoogleApis\Apis\Services\BaseClientService.cs:line 263
   --- End of inner exception stack trace ---
   at Google.Apis.Requests.ClientServiceRequest`1.Execute() in c:\ApiaryDotnet\default\Src\GoogleApis\Apis\Requests\ClientServiceRequest.cs:line 102
   at DataIntegration.Services.Google.ImportGmailCalenderService.ImportGmailCalendars(DateTime dateFrom, DateTime dateTo) in c:\buildworkspaces\NextRelease\DataIntegration\Services\Google\ImportGmailCalendarService.cs:line 59

Reply all
Reply to author
Forward
0 new messages