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
SDK throws JsonException in FileUploadInfoParser. I noticed that the response json object is nested in a structure like {"root_response":"{}"}.
Then I debugged the code and found out it was due to the upload URL responds with "contentType:text/html; charset=windows-1251", and there's no typeConverter handled such contentType, so VKSDK ran into the fallback logic in ResponseBodyJsonConverter:
I'm testing photo uploading function in v4.1.0.
SDK throws JsonException in FileUploadInfoParser. I noticed that the response json object is nested in a structure like {"root_response":"{}"}.
Then I debugged the code and found out it was due to the upload URL responds with "contentType:text/html; charset=windows-1251", and there's no typeConverter handled such contentType, so VKSDK ran into the fallback logic in
ResponseBodyJsonConverter
:I'm wondering if I should modify the FileUploadInfoParser to handle the new JSON format, or it's just a photo service bug
The text was updated successfully, but these errors were encountered: