-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dependency dio produces errors dio version >= 4.0.4 fails with "Future already completed" #45
Comments
jdde
added a commit
to jdde/flagsmith-flutter-client
that referenced
this issue
Nov 30, 2022
@dabeeeenster just mentioned this dio issue in discord: cfug/dio#1550 |
dabeeeenster
pushed a commit
that referenced
this issue
Nov 30, 2022
* - locked dio version, to make sure flagsmith is compatible to dio - see #45 * - re-executed "flutter pub get" to not use the non-working version 4.0.6 in the example - the example throws errors.
@matthewelwell can we close this issue on account of #48 ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys, I just tried to see if the new dio v4.0.6 resolved the issue mentioned in your documentation https://docs.flagsmith.com/clients/flutter#known-issues
"If using the package Dio, you may encounter an error saying Bad state: Future already completed. There is a bug in the Dio package, introduced in 4.0.5 (and as of writing this on 12/09/2022, is unresolved). To resolve, you'll need to pin your Dio version in pubspec.yaml to 4.0.4 or earlier."
Unfortunately this is not the case.
I'll attach my test results as screenshots.
I reproduced it easily, by just locking the dio version in the sdk itself & in the example application.
Then start it for web - see if the error occurs.
Here you can see the result with different version - 4.0.4, 4.0.5, 4.0.6
Web state with dio 4.0.4
Web state with dio 4.0.5
Web state with upgrading dio to 4.0.6
The text was updated successfully, but these errors were encountered: