react-player
react-player copied to clipboard
Error Handling Missing in fetchImage Call in Preview Component
We are using the react-player package in our project to embed and play YouTube videos. While monitoring logs through Sentry, we noticed recurring "Failed to Fetch" errors.
After investigation, we traced the issue back to the Preview component, specifically to the fetchImage method. When this image fetch fails (e.g., due to network issues or interference from browser extensions), it throws an unhandled error, which gets logged in Sentry.
I’d like to ask:
Is there any error handling implemented in the fetchImage call inside the Preview component or any support through which I can detect whether some error is thrown from react-player?