-
Notifications
You must be signed in to change notification settings - Fork 247
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
Connectivity issues and "bad file descriptor" errors #5631
Comments
Its related to this issue: #3865 and we are using suggested comment here to address the issue: #3865 (comment) |
Hello @damir-fell, I'm sorry you are experiencing these issues. Can you please try updating to the latest release 2.5.0 of amplify-flutter and report back if it solved the issue? |
Hi @ekjotmultani
It will take some time due to the breaking changes and I would like to resolve the issue as quickly as possible |
Hello @damir-fell
You can migrate from "Gen 1 v1" to "Gen 1 v2" using this guide.
|
Thanks for the response, we will update the library and Flutter version and see. About reproduction, its not really a code snippet or something I can share. Basically our app uses a bunch of subscriptions, queries and mutations and we seem to get problems when app has been in background for a long time and when put to foreground we get many "failed to lookup host" and "bad file descriptor" issues. It funnily enough doesn't look like subscriptions are the issues, but rather queries and mutations. Here are a couple of examples
It is not internet issues as this happens with multiple users on random timestamps, and its occurring as long as app is alive. If app is killed and opened again the issues are gone. We stop subscriptions when app is put to background and restore it when app is put to foreground but the issues keep reappearing either way as long as the app session is active. |
Description
Hello,
In our app we are experiencing the issue described in this dart issue thread: dart-lang/http#197. Going through our code it seems that we are doing everything right in terms of stopping subscriptions and similar when app goes to background but for some reason it doesnt look like the connection pool is cleared.
We want to try to replace the http client Amplify is using with http_cupertino on ios as suggested by that thread. How can we do this? Do we need to do something within the amplify libraries itself or how is the http package provided?
Categories
Steps to Reproduce
It is usually reproduced when app goes to foreground after being in background for extended period of time. What happens is that all queries start to fail and any retries or similar later does not recover the issue. The app has to be restarted in order to recover.
Screenshots
No response
Platforms
Flutter Version
3.13.8
Amplify Flutter Version
1.7.0
Deployment Method
AWS CDK
Schema
No response
The text was updated successfully, but these errors were encountered: