React-native-code-push: Unable to connect to the CodePush server. Are you offline, or behind a firewall or proxy?

Created on 3 May 2017  路  7Comments  路  Source: microsoft/react-native-code-push

I am getting the above issue when enter the access key after running
code-push register command
Please help.

Thanks

question waiting-for-clarification

Most helpful comment

Solved

I was using iterm2. I closed the tab, opened a new one, and executed the command again: it worked.

Maybe it's a terminal issue?

All 7 comments

Hi @hanishs17, thanks for reaching us. Did you have an access to CodePush server before the issue? In case you have tried to register CodePush first time, it would sound obviously, but have you configured firewall or proxy (VPN)? You also could try to relaunch your internet connection (I have heard it helps someone before). Please let me know if you have any updates.

@hanishs17, just a friendly ping.

Closing this for now, please feel free to reopen if needed.

I'm getting the same error when running:
code-push release-react xxxxxx ios

[Error]  Unable to connect to the CodePush server. Are you offline, or behind a firewall or proxy?
(getaddrinfo ENOTFOUND codepush-management.azurewebsites.net codepush-management.azurewebsites.net:443)

I'm not behind a proxy or firewall. Also, I'm not offline since I can post this.
I tried restarting my internet and it's still happening.

Solved

I was using iterm2. I closed the tab, opened a new one, and executed the command again: it worked.

Maybe it's a terminal issue?

@bernatfortet, thanks for your response.

Maybe it's a terminal issue?

It is difficult to say due to there is no stable reproduction steps that we could use to determine root cause of the issue.

Please let us know if you have any questions or see any issues.

@bernatfortet WOW!..

Works... this is very strange

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuhrmann picture Fuhrmann  路  3Comments

osdnk picture osdnk  路  3Comments

EdmundMai picture EdmundMai  路  4Comments

DeDuckProject picture DeDuckProject  路  3Comments

SudoPlz picture SudoPlz  路  4Comments