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

Better error message when unable to connect to the network

Open qingfeng opened this issue 10 years ago • 5 comments

[Error] getaddrinfo ENOTFOUND codepush.azurewebsites.net codepush.azurewebsites.net:443

qingfeng avatar Dec 22 '15 15:12 qingfeng

Seeing this today from the cli

CarlosLCervantes avatar Jul 12 '16 19:07 CarlosLCervantes

@CarlosLCervantes, what command were you running when you got this? Are you able to get a consistent repro?

richardhuaaa avatar Jul 13 '16 21:07 richardhuaaa

Any command that needed to hit the codepush server was failing with this. I was able to diagnose it as an issue with our network. For some reason a DNS lookup to codepush.azurewebsites.net was failing for every box in our network. I was able to push my updates out by tethering to my phone call network.

CarlosLCervantes avatar Jul 13 '16 23:07 CarlosLCervantes

Thanks for the info, this was very useful and I'm glad you figured it out. We could maybe show a better error message here, I'll re-open this issue just to track that. Feel free to let us know if you run into anything else!

richardhuaaa avatar Jul 14 '16 00:07 richardhuaaa

Thanks for reporting this! We have fixed our handling of network failures in [email protected]: https://github.com/Microsoft/code-push/releases/tag/v1.12.5-beta

richardhuaaa avatar Sep 23 '16 19:09 richardhuaaa