Skip to content

Invalid Internet Address #935

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

Closed
SandorSzavost28 opened this issue May 17, 2023 · 2 comments
Closed

Invalid Internet Address #935

SandorSzavost28 opened this issue May 17, 2023 · 2 comments
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@SandorSzavost28
Copy link

flutter/flutter#126650

After upgrading Flutter 3.10.0 users have been getting Invalid Internet Address Error when requesting with http.

Issue explained on detail on URL above. Is it http package related to this? thanks!

imagen

@SandorSzavost28 SandorSzavost28 added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels May 17, 2023
@DanTup
Copy link
Contributor

DanTup commented May 18, 2023

@natebosch noted at flutter/flutter#126650 (comment), this isn't related to package:http. It happens using the SDK APIs directly.

The issue is that you have "All Exceptions" ticked in the debugger, meaning that the debugger will pause on any thrown exception even when it will be caught. If you click "continue" you'll see the web request completes normally and your app does not produce any errors. I would recommend instead only ticking "Uncaught exceptions" because I think provides the behaviour you're expecting.

I included some more details about this in flutter/flutter#126650 (comment) and flutter/flutter#126650 (comment).

I've also opened dart-lang/sdk#52423 to enquire whether the SDK could be tweaked to avoid this situation. However it's not itself a bug, and if you run with "All Exceptions" ticked you should always be prepared that the debugger will stop on exceptions that are not actual errors you need to handle/fix.

@brianquinlan
Copy link
Collaborator

This will also be fixed in Dart 3.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants