Skip to content
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

As my app in background,the dio will show some error #620

Closed
beydeng opened this issue Dec 23, 2019 · 7 comments
Closed

As my app in background,the dio will show some error #620

beydeng opened this issue Dec 23, 2019 · 7 comments

Comments

@beydeng
Copy link

beydeng commented Dec 23, 2019

like
I/flutter (12431): content{"errorMsg":"DioError [DioErrorType.DEFAULT]: SocketException: Failed host lookup: 'cloud-services.xiaoban.mobi' (OS Error: No address associated with hostname, errno = 7)","errorCode":1}

or

I/flutter (10728): content{"errorMsg":"DioError [DioErrorType.CONNECT_TIMEOUT]: Connecting timed out

@stale
Copy link

stale bot commented Jan 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

@stale stale bot added the stale label Jan 22, 2020
@brianb-sf
Copy link

I see something similar as well. In my investigation, it seems like when the application enters the background at the correct time I see DioError [DioErrorType.CONNECT_TIMEOUT]. I have had a hard time tracking down the root cause of why these errors occur.

Do requests need to be canceled when the application enters the background maybe?

@stale stale bot removed the stale label Jan 25, 2020
@stale
Copy link

stale bot commented Feb 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

@stale stale bot added the stale label Feb 24, 2020
@stale stale bot closed this as completed Mar 2, 2020
@ITAnt
Copy link

ITAnt commented Sep 18, 2020

Why closed this bug? This is still happening in the latest version. Just let me down.

@catmaomao
Copy link

i have the same issue.DioError [DioErrorType.CONNECT_TIMEOUT] when app in background

@himanshu447
Copy link

This issue still exists for IOS

@daniel-py
Copy link

this issue still exists for IOS (Not too sure about android). Any solution please??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants