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
The function in lib/JSON.cs:193 protected static string ParseString (char[] json, ref int index, ref bool success)
throws an exception "The argument must not be in surrogate pair range" in lib/JSON.cs:244 s.Append (Char.ConvertFromUtf32 ((int)codePoint)); that is not handled by (tested on instagram API, media/popular endpoint). If you assume JSON API return status code via bool argument, this exception must be handled.
I've muted it with
try{
// convert the integer codepoint to a unicode char and add to string
s.Append (Char.ConvertFromUtf32 ((int)codePoint));
}catch(Exception e){
s.Append ( "" );
}
it works, but i'm not sure if it is correct logic.
The text was updated successfully, but these errors were encountered:
The function in lib/JSON.cs:193
protected static string ParseString (char[] json, ref int index, ref bool success)
throws an exception "The argument must not be in surrogate pair range" in lib/JSON.cs:244
s.Append (Char.ConvertFromUtf32 ((int)codePoint));
that is not handled by (tested on instagram API,media/popular
endpoint). If you assume JSON API return status code via bool argument, this exception must be handled.I've muted it with
it works, but i'm not sure if it is correct logic.
The text was updated successfully, but these errors were encountered: