saguiitay / DropboxRestAPI

Dropbox REST API client in C#
MIT License
46 stars 38 forks source link

Serialization issue? #25

Open SRT5752 opened 8 years ago

SRT5752 commented 8 years ago

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.
saguiitay commented 8 years ago

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)?

SRT5752 commented 8 years ago

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.