-
Notifications
You must be signed in to change notification settings - Fork 78
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
Easily Crash when JSON response wrong format or null ! #99
Comments
Hello, @buidinhduong! Thanks for your report! Can you provide please sample JSON and a mapping? |
-[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000000013 |
this crash may occur if server response wrong format type. example : |
Sorry for not getting back for such a long time. Errors handling is in the plans. However incorrect types can not be handled or converted automatically. FEM assumes that your types are consistent. Looks like that the backend returns types incorrectly which is not subject for this library. But for sure we need to return a correct error. |
Easily Crash when JSON response wrong format or null field !
Please check & improve this .
Also, Lib should provide a way to handle error manually or document how to handle response error ?
Thank you
The text was updated successfully, but these errors were encountered: