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

Images are not loaded when 400 status is returned #470

Closed
vytautas-pranskunas- opened this issue Sep 22, 2020 · 4 comments
Closed

Images are not loaded when 400 status is returned #470

vytautas-pranskunas- opened this issue Sep 22, 2020 · 4 comments

Comments

@vytautas-pranskunas-
Copy link

Hi,

I am on latest flutter_cached_network_image and flutter. I see this issues for a very long time maybe it is time to fix it?
Just pointing to older discussion
#273

How we can release our apps with such bug? :(

CacheManager: Failed to download file from https://s3.amazonaws.com/uifaces/faces/twitter/hugocornejo/128.jpg with error:
I/flutter (11066): HttpException: Invalid statusCode: 400, uri = https://s3.amazonaws.com/uifaces/faces/twitter/hugocornejo/128.jpg

You can check an url it works.
It also works on my emulator but not on device. not on Android not on iOS

@vytautas-pranskunas-
Copy link
Author

But I noticed that this issue was gone for some time until I have updated to latest flutter version. I will try to downgrade in upcoming days to check.

@vytautas-pranskunas- vytautas-pranskunas- changed the title Images are not loaded when 404 status is returned Images are not loaded when 400 status is returned Sep 24, 2020
@vytautas-pranskunas-
Copy link
Author

No, Flutter downgrade did not help. Same issue
Guys are you planning to fix it? People are havily depended on this - i Cannot release my app

@vytautas-pranskunas-
Copy link
Author

I found an issue. For me it was that i was sending Beare header to s3 and it was deying it. So i added condition that for auth headers would not be sent to external urls.

@JeanRoldanDev
Copy link

String tipo = ContentType.parse(res.headers['content-type']).primaryType;
if (tipo == 'image') {

}

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

2 participants