I\'m getting the following error: Possible unhandled promise rejection (id:0: Network request failed
Here\'s the promise code, I don\'t see what\'s wro
Adding here my experience that hopefully might help somebody.
I was experiencing the same issue on Android emulator in Linux with hot reload. The code was correct as per accepted answer and the emulator could reach the internet (I needed a domain name).
Refreshing manually the app made it work. So maybe it has something to do with the hot reloading.