-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android] Images with 301 redirect don't load #4940
Comments
Hey satya164, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
@mkonicek No idea. I had searched, but didn't find anything on this. Also on a quick look, the Native module just seems to pass the URL to Fresco. Thanks for the upvote and the correct link. I had no idea that changing the title changes the link on ProductPains. |
Pinged Tyrone. |
@mkonicek Thank you ❤️ |
In ReactNative apps, Fresco delegates the network request to OkHttp. By default, OkHttp does follow 301 redirects. We'd need to debug through OkHttp source to find out why this doesn't seem to be happening. |
@tyronen Lemme know if I can do anything to help. |
I have exactly the opposite problem. Android seemed to be ok, but IOS would only load the image once and subsequent attempts at displaying the image wouldn't work. Looking at the web server logs it doesn't even make a request. Using RN 0.23 |
This looks like it was fixed in https://github.com/facebook/react-native/releases/tag/v0.26.0 . I'm going to close the issue but feel free to reopen if I am wrong about that. |
We can confirm that this issue is still present in version 0.39 and Android, seems to be only fixed for iOS. Please reopen if possible. Thanks! |
Still happening on Android, can confirm on |
I see this is happening on iOS as @npomfret reported on April 20. In Facebook search "Danielles Guide to 504 Plans" which leads you to a card from Spokin Inc. Tapping on that card the first time successfully takes user to the URL http://www.spokin.com/504plans. But hitting back button and tapping on that card going forward goes to a 404. https://screencast.com/t/EzVFUrP6usQ Please add a label iOS and also change the title to include iOS |
I have encountered same issue with RN v0.4.51 iOS. |
I'm sorry, I resolved it and it's not related to this issue. |
same here. Images shown randomly |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Loading images from server where it does a redirect doesn't seem to work on Android. It works fine on iOS.
Demo - https://rnplay.org/apps/UEdIbw
Currently I'm working around this by having a native module which resolves the final URL and sends it back to JavaScript. Its terrible, but at least it gets the job done.
The text was updated successfully, but these errors were encountered: