-
Notifications
You must be signed in to change notification settings - Fork 26
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
com.baasbox.android.BaasIOException: java.net.SocketTimeoutException #35
Comments
Sorry for this! Timeouts should not bubble out of the callback, in any case, I'll fix this asap |
Thanks! |
Also in the mean time you can set a global ExceptionHandler in BaasBox.builder() |
Hi, I've executed a simple test, setting the timeout to 1ms:
This seems to behave correctly, infact it gives BaasBoxIOException with cause |
Also it works the same for BaasBox.rest(....) that currently is deprecated and for it's replacement BaasBox.rest().async(....). |
BaasBox.rest() is fine indeed, however, fetchAll still crashes for me |
Could you please check fetchAll as well? |
0.9.1 Server with 0.9.2 SDK
How should I handle SocketTimeoutException?
If I call a plugin endpoint
then I can catch SocketTimeoutException and handle it, but if I use some of the native calls:
then it crashes with SocketTimeoutException
The text was updated successfully, but these errors were encountered: