-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
Unhandled Exception: HttpException: No valid statuscode. Statuscode was 404 #144
Comments
I have the same error. It only throws this error when I tried to load an image from a url whose response is 404. Is there some way to Catch this exception so that it will not throw an error on the console? |
In debug mode it seems to freeze the app. |
The same problem. It's very strange to throw exceptions when image is not available without ability to catch it. Why just not add callback if any error? |
Emmm. I met the same error which response was 531 |
I have the same problem when call to a url return 404. [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: HttpException: No valid statuscode. Statuscode was 404 |
I've set up with this
but still, the app crashed when the image is 404. so what's the point of |
The error comes from visual code debugger (or somewhere around), if you use flutter run from console then all works as it should. It happened to me with my own code and I posted an issue. |
@cosinus84 I tried running it using |
@rmarau I tested it on my app and your fix works. No exceptions are thrown while scrolling |
I have the same problem. Any solution for that? |
Fixed in 1.1.0 |
@renefloor I upgrade to 1.1.0, But got a new error.
|
I'm using version 1.1.0 and I still get the console error dump when I recieve a 403 status code when providing an |
@renefloor same error. |
We are also getting this error, but for 403 |
I think we're running into flutter/flutter#33427 which seems to be related to a VM problem. |
Same question |
我还以为作者回复我了呢。。 |
Also still have the error with |
i meet the same problem,i found change Icons.error to icons.outlin,it is ok when change back. |
same error 1.1.1 fix please |
@renefloor facing the same issue in V 1.1.1 |
Why is this issue closed? Still facing this issue with v1.1.1 |
If you're using VSCode, then this is probably a false positive from the Dart code plugin. Try and turn off the "Uncaught Exceptions" breakpoint on the debug screen. Why this happens can be found here: flutter/flutter#33427 |
Still facing the issue as well |
Does some1 know if it is fixed in 1.1.2? I still had it in 1.1.1 |
Just updated to 1.1.2 and it shows me the error as INFO and not as ERROR:
|
Still facing this issue |
Same question |
same question 😵💫 |
E/flutter (18499): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: HttpException: No valid statuscode. Statuscode was 404
E/flutter (18499): #0 BaseCacheManager.getFile
package:flutter_cache_manager/src/cache_manager.dart:120
E/flutter (18499):
E/flutter (18499): #1 CachedNetworkImageState._animatedWidget
package:cached_network_image/src/cached_image_widget.dart:261
E/flutter (18499): #2 CachedNetworkImageState.build
package:cached_network_image/src/cached_image_widget.dart:194
E/flutter (18499): #3 StatefulElement.build
package:flutter/…/widgets/framework.dart:3825
E/flutter (18499): #4 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3736
E/flutter (18499): #5 Element.rebuild
package:flutter/…/widgets/framework.dart:3559
E/flutter (18499): #6 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3716
E/flutter (18499): #7 StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:3864
E/flutter (18499): #8 ComponentElement.mount
package:flutter/…/widgets/framework.dart:3711
E/flutter (18499): #9 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #10 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #11 SingleChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:4876
E/flutter (18499): #12 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #13 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #14 SingleChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:4876
E/flutter (18499): #15 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #16 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #17 SingleChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:4876
E/flutter (18499): #18 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #19 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #20 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3747
E/flutter (18499): #21 Element.rebuild
package:flutter/…/widgets/framework.dart:3559
E/flutter (18499): #22 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3716
E/flutter (18499): #23 ComponentElement.mount
package:flutter/…/widgets/framework.dart:3711
E/flutter (18499): #24 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #25 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #26 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3747
E/flutter (18499): #27 Element.rebuild
package:flutter/…/widgets/framework.dart:3559
E/flutter (18499): #28 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3716
E/flutter (18499): #29 ComponentElement.mount
package:flutter/…/widgets/framework.dart:3711
E/flutter (18499): #30 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #31 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #32 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:3747
E/flutter (18499): #33 Element.rebuild
package:flutter/…/widgets/framework.dart:3559
E/flutter (18499): #34 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:3716
E/flutter (18499): #35 ComponentElement.mount
package:flutter/…/widgets/framework.dart:3711
E/flutter (18499): #36 Element.inflateWidget
package:flutter/…/widgets/framework.dart:2956
E/flutter (18499): #37 Element.updateChild
package:flutter/…/widgets/framework.dart:2759
E/flutter (18499): #38 ComponentElement.performRebuild
The text was updated successfully, but these errors were encountered: