-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
unexpected error message #10
Comments
@workingDog Thanks a ton for noticing that and taking the time to report it. Being quite busy at the moment, would you be willing to fix this via a Pull Request ? |
ok, I'll do it in the next few days. |
@workingDog Any status on this? Was facing the same issue today trying to catch some timeout/no internet errors. I have another question; is it possible to see where a mapping from JSON to object fails? Currently I'm only getting error 1 and "Unable To Parse Response". It would be great if I could see which parameter was wrong. I have a nested JSON structure with up to 5-6 levels so its quite cumbersome to troubleshoot. This is probably not related to this repo(?) |
Status: I have a Pull Request that will fix most of these issues. Wait till s4cha review the PR. Look at my fork for more info in the meantime. |
..."It would be great if I could see which parameter was wrong." Yes it would be. Careful investigation is the only way I know of. |
Been working on Android for many years using RetroFit so I guess I'm a bit spoiled. Line-by-line ended up as my approach too. |
I sometimes use quickType. For example, do: curl "https://api.github.com/repos/workingDog/SPMExplorer" copy and paste the json response into: https://app.quicktype.io/ to generate the bulk of the code. |
Looking at this today, thanks a ton for your patience folks :) |
@ScratchMyTail Indeed having the parsing bubble up would be great, this is not supported at the moment, I don't know if this is technically possible with Codable parsing to be honest. We'll track this one separately here: #16 |
@workingDog Can we close this since the related PR has already been merged ? |
Yes, close this. |
When I have a wifi connection the test code gives the correct "Unauthorized" error.
However when I disable the wifi, I get a "Unable To Parse Response".
I was expecting to get "Network Unreachable". It seems that the error in this case
is status+1.
Test code:
The text was updated successfully, but these errors were encountered: