DropboxRestAPI icon indicating copy to clipboard operation
DropboxRestAPI copied to clipboard

Serialization issue?

Open SRT5752 opened this issue 10 years ago • 2 comments

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.

SRT5752 avatar Dec 04 '15 19:12 SRT5752

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

saguiitay avatar Dec 06 '15 08:12 saguiitay

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.

SRT5752 avatar Dec 09 '15 20:12 SRT5752