You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[iOS]: Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank #20917
When I embed certain urls inside of a WebView on iOS is throws an uncaught exception, you can view this log here, which doesn't crash the app or do anything serious that I can find currently. But it shows up in my Sentry crash logs quite a bit. So i though id have a look at why it is occurring.
Reproducible Demo
I tried reproduce it on the expo demo but it doesn't seem to be showing the warning errors, you may have to turn them on but any way. Paste this into any view to get the warnings come up in the console.
changed the title [-]Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank [/-][+][iOS]: Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank [/+]on Aug 30, 2018
I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
Activity
UrbanChrisy commentedon Aug 30, 2018
I have narrowed it down to this line will submit PR soon.
[-]Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank [/-][+][iOS]: Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank [/+]react-native-bot commentedon Aug 30, 2018
Can you run
react-native infoand edit your issue to include these results under the Environment section?If you believe this information is irrelevant to the reported issue, you may write
[skip envinfo]under Environment to let us know.bthuan commentedon Aug 30, 2018
I am having the same problem. Hope this will be fixed soon
UrbanChrisy commentedon Aug 30, 2018
@bthuan Check out the pr i've submitted on how to solve it as a work around for now.
react-native-bot commentedon Sep 7, 2018
I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
JensDebergh commentedon Oct 8, 2018
@UrbanChrisy Hey there!
Any link to the pull request you submitted? Can't seem to find it and I'm experiencing the same issues in our app.
Kind regards
UrbanChrisy commentedon Oct 8, 2018
@JensDebergh I don't know why all the links are broken but here it is. I need to fix that pr for it to be merged. #20918
JensDebergh commentedon Oct 8, 2018
@UrbanChrisy Meanwhile I already found a "fix" for the unpromised rejection.
Providing an origin whitelist fixes the issue, although not ideal it does work:
savioseb commentedon Oct 16, 2018
For more info: https://facebook.github.io/react-native/docs/webview#source
davidcort commentedon May 10, 2019
OS: macOS 10.14.3
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
originWhitelist={['*']} still do the trick :)
davidcort commentedon May 26, 2019
originWhitelist={['*']} still do the trick, BUT ...
The social media buttons share in the webview not work :(