-
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
Image onError logs undefined on Android #19073
Comments
Thanks for posting this! It looks like your issue may be missing some necessary information. Can you run Thank you for your contributions. |
I am also experiencing this issue.
My steps to reproduce are a little simpler.
I verified that the image exists at I expected an error to be passed to |
I fixed my issue. I needed to prepend the path with Frustrating no error is passed to onError on Android! |
I am also affected by this. In my case I am loading many (thousands) images in a Perhaps it's related to #7440 For reference, also reported here: https://stackoverflow.com/questions/49136720/react-native-image-how-to-use-onerror#comment85402686_49137662 In my particular case I suspect it's some kind of memory or other resource related problem, as same images are loaded if I limit the total number of images. IOS doesn't seem to be affected, perhaps due to a better performance. |
Same |
Same here... |
This got already posted but closed as I got in the same situation and found that old issue. Using the workaround by using |
Same issue here, but I cannot use the workaround due to Image.prefetch having no support for headers :( Would love to work on this if I could just figure out where to start... |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
not stale |
As far as I can tell, this issue contains the same as #18502 ... which one should stay open?! Or are they different? |
@react-native-bot Image onError logs undefined on Android |
Verified on CircleCI via integration tests. [ANDROID] [BUGFIX] [Image] - Add error description to onError callback fixes facebook#19073
**Test Plan**: Verified on CircleCI via integration tests. **Changelog:** [ANDROID] [BUGFIX] [Image] - Add error description to onError callback fixes facebook#19073
**Test Plan**: Verified on CircleCI via integration tests. **Changelog:** [ANDROID][BUGFIX][Image] - Add error description to onError callback fixes facebook#19073
**Test Plan**: Verified on CircleCI via integration tests. **Changelog:** [ANDROID][BUGFIX][Image] - Add error description to onError callback fixes facebook#19073
**Test Plan**: Verified on CircleCI via integration tests. **Changelog:** [ANDROID][BUGFIX][Image] - Add error description to onError callback fixes facebook#19073
) Summary: fixes facebook#19073 Changelog: ---------- [Android] [Fixed] - Add error description to Image onError callback Pull Request resolved: facebook#22737 Differential Revision: D13676224 Pulled By: hramos fbshipit-source-id: 0dea7e97ae6517b8980ad02827f19d22cd3ef933
) Summary: fixes facebook#19073 Changelog: ---------- [Android] [Fixed] - Add error description to Image onError callback Pull Request resolved: facebook#22737 Differential Revision: D13676224 Pulled By: hramos fbshipit-source-id: 0dea7e97ae6517b8980ad02827f19d22cd3ef933
Environment
OS: Windows 10
Node: 8.2.1
Yarn: 1.3.2
npm: 5.8.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.1.0.0 AI-173.4670197
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.0 => 0.55.0
Steps to Reproduce
Expected Behavior
Logging error variable should print the reason that the Image is not being loaded.
Actual Behavior
error is undefined.
The text was updated successfully, but these errors were encountered: