-
Notifications
You must be signed in to change notification settings - Fork 54
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
[Bug]: Seeing crashes during OAuth flow when network errors occur #84
Comments
Please see if teranetsrl/oauth2_client#178 fixes these issues. If not, I am open for PRs |
Thanks, I'll give that a shot and see if I see any new instances of the crash. If you prefer to close this and have me re-open if I have more crashes, feel free to do so! |
You're welcome :) |
I can't say whether this was working (I think I had a regression after a while but not 100% sure), but unfortunately this did break my login functionality because of this PR (specifically the introduction of |
@rundfunk47 Have you made sure that the other approaches still work as expected? Probably the local storage approach is not functioning correctly anymore, could you check that please? Otherwise, I might have to disable your changes for now |
If I understand this correctly, the issue is that |
@btrautmann Is that the issue? I thought you were maybe referring to something else? |
Sorry, I'm a little confused. Here's the series of events as I understand it:
Due to the above, I removed the dependency override as I wanted to fix the app in production. This resolved the issue (since I'm now using the older version of |
so I'm assuming changing:
to
will likely fix the latter issue? I can create a PR for that 🙂 |
Yes, I suspect that will fix the issue :) |
@rundfunk47 That should not be the problem as the |
Maybe, this might be a fix anyway. I will try out soon! |
I just uploaded 3.1.1, which should fix this issue. Please confirm whether this is the case @btrautmann |
I posted the logs/Exception above. I'll give the new version a shot some time today. |
Yes, sorry, I overlooked them at first, but found them afterwards. They are related to a problem I fixed once, but reintroduced with 3.1.0 |
Just checked, and yeah, that fixed it on both platforms 👍 Thank you for the quick turnaround! |
Perfect, thank you very much for the feedback! :) |
Description
I've had a few crashes reported with this package in the stacktrace:
In several of the reports, it seems a network request in the oauth flow has thrown a 404:
This package is being used transitively via
oauth2_client
3.2.2.Minimal Reproduction
oauth_client
^3.2.1Exception or Error
See description
Expected Behaviour
The package should gracefully handle network failures.
Screenshots
No response
Additional context
No response
Device
iPhone 14 Pro
OS
iOS 16.5.1
Browser
N/A
Flutter version
3.13.6
flutter_web_auth_2 version
2.2.1
Checklist
The text was updated successfully, but these errors were encountered: