Skip to content
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

HttpException: No valid statuscode. #433

Closed
1 task done
raphaaugustosilva opened this issue Jul 23, 2020 · 2 comments
Closed
1 task done

HttpException: No valid statuscode. #433

raphaaugustosilva opened this issue Jul 23, 2020 · 2 comments

Comments

@raphaaugustosilva
Copy link

🐛 Bug Report

My app is crashing when there is an invalid, not found, or malformed url.

Exception is :
`
I/flutter ( 8040): CacheManager: Failed to download file from https://firebasestorage.googleapis.com/v0/b/yes4track-b20a3/o/card_experiencia_peralles.JPG?alt=media&token=10738ca2-ef34-4156-9a60-744c24f562072 with error:

I/flutter ( 8040): HttpException: Invalid statusCode: 403, uri = https://firebasestorage.googleapis.com/v0/b/yes4track-b20a3/o/card_experiencia_peralles.JPG?alt=media&token=10738ca2-ef34-4156-9a60-744c24f562072
`

Expected behavior

It would just render the "errorWidget" and if necessary by the component, it could even log, but without throwing an exception to app.

Reproduction steps

return Container( height: 100, width: 100, child: CachedNetworkImage( imageUrl: _myUrl, imageBuilder: (context, imageProvider) => CircleAvatar(backgroundImage: imageProvider), placeholder: (context, url) => any_widget, errorWidget: (context, url, error) => any_widget, ), );

Configuration

Version: ^2.3.0-beta.1+1 (or ^2.2.0+1 too)

Platform:

  • [ can`t say ] 📱 iOS
  • 🤖 Android
@renefloor
Copy link
Contributor

Is it really crashing or is just the debugger pausing your app? It should at most pause your debugger. If you can create a video of a crashing app please reopen this issue.

@juanlabrador
Copy link

juanlabrador commented Jun 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants