You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to retrieve my friend-list, I'm getting the Exception below. I tested several other methods successfully, so I know auth isn't an issue here.
'foursquare.GetUserFriends("334497")' threw an exception of type 'Newtonsoft.Json.JsonSerializationException'
base: {"Error converting value "21ac47b2cca3eba81920042c710541a5058336f8" to type 'FourSquare.SharpSquare.Entities.FourSquareEntityItems`1[FourSquare.SharpSquare.Entities.User]'. Path 'response.checksum', line 1, position 25143."}
The text was updated successfully, but these errors were encountered:
I found the cause... the issue is on line 119 of SharpSquare.cs, when JsonConvert tries to deserialize the JSON it just received from the server, it throws the error below:
Error converting value "21ac47b2cca3eba81920042c710541a5058336f8" to type
'FourSquare.SharpSquare.Entities.FourSquareEntityItems`1[FourSquare.SharpSquare.Entities.User]'.
Path 'response.checksum', line 1, position 25143.
This is happening because Foursquare is returning a "checksum" element which is not expected in the deserialization. When removed the checksum element from the JSON, the error above goes away. It's possible that this is a newly introduced item to the Foursquare API.
In trying to retrieve my friend-list, I'm getting the Exception below. I tested several other methods successfully, so I know auth isn't an issue here.
'foursquare.GetUserFriends("334497")' threw an exception of type 'Newtonsoft.Json.JsonSerializationException'
base: {"Error converting value "21ac47b2cca3eba81920042c710541a5058336f8" to type 'FourSquare.SharpSquare.Entities.FourSquareEntityItems`1[FourSquare.SharpSquare.Entities.User]'. Path 'response.checksum', line 1, position 25143."}
The text was updated successfully, but these errors were encountered: