-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
100% crashed when get a json #135
Comments
Well, that's interesting... looks like it's coming from the JSON library I've used, json-framework.
I'll have to poke around on this a little bit. |
The data returned by that URL appears to contain an invalid character:
In theory, JSON should be either UTF-8 or UTF-16, but that character doesn't appear to be either -- it might be ISO-8859. The JSON library I'm using for pretty printing doesn't even support UTF-16 (see: SBJson/SBJson#115) so it seems like it has a tight coupling on UTF-8... and in fact the line of code that is crashing the entire program is trying to create a new String assuming a UTF8 encoding while tokenizing that character. Long story short... I think at best I will have to catch the error to prevent the crash but then display the text without pretty printing. |
Fixed in Version 1.4.4 |
Cocoa Rest Client Version: 1.4.3 (26)
macOS Version: 10.13.2
reproduce:
open
cocoarestclient
input
https://chainz.cryptoid.info/explorer/api.dws?q=summary
method
GET
submit, and you will get the crash.
The text was updated successfully, but these errors were encountered: