DropboxRestAPI
DropboxRestAPI copied to clipboard
Serialization issue?
Hello,
I get the exception below. The only related cause I can think of is that I'm trying to use a more recent version of the Newtonsoft.Json library.
System.AggregateException : One or more errors occurred.
----> Newtonsoft.Json.JsonSerializationException : Error converting value "pending" to type 'DropboxRestAPI.Models.Core.PhotoInfo'. Path 'photo_info', line 1, position 212.
----> System.ArgumentException : Could not cast or convert from System.String to DropboxRestAPI.Models.Core.PhotoInfo.
This seems more like some invalid response returned from Dropbox, since "pending" doesn't seem like a valid value for "photo_info" (which usually contains the time_taken and lat_long of the photo).
Can you send me the JSON returned from Dropbox (via Fiddler, or similar)?
Hello, yes realized that it was probably an unexpected response and not a serialization issue. I'll see if I can get hold of the "pending" JSON.