react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Better error messages from image component

Open frags51 opened this issue 3 years ago • 2 comments

Description

Using RN 0.64.2. Right now, the error messages from the image component are not at all helpful. For e.g., in onError we just get errors like "Image failed to load" which does not help in debugging. It would be great if we can get details like response body/headers in case of network call, and other descriptive messages like "Internet connection not available" etc.

Version

0.64.3

Output of npx react-native info

System: OS: Windows 10 10.0.19044 CPU: (12) x64 Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz Memory: 39.28 GB / 63.59 GB Binaries: Node: 12.22.1 - ~\AppData\Local\nvs\default\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.12 - ~\AppData\Local\nvs\default\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 4.0.0.0 AI-193.6911.18.40.6821437 Visual Studio: 15.9.28307.1759 (Visual Studio Enterprise 2017), 16.7.32002.127 (Visual Studio Enterprise 2019) Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Just render any image that fails to load for some reason. <Image source={{uri: 'https://foo.bar/needsAuthHeadersButNoneSupplied'}} /> <Image source={{uri: 'https://foo.bar/image.png'}} />, but internet is not connected

Snack, code example, screenshot, or link to a repository

No response

frags51 avatar Feb 03 '22 07:02 frags51

Any updates on this issue?

frags51 avatar May 10 '22 10:05 frags51

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 08 '22 02:11 github-actions[bot]

Closing as stale

cortinico avatar Oct 27 '23 15:10 cortinico