pyenv / pyenv-installer

This tool is used to install `pyenv` and friends.
MIT License
3.98k stars 431 forks source link

Error: curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 130271 ms: Couldn't connect to server #153

Closed rufevean closed 9 months ago

rufevean commented 9 months ago

I encountered the following error while trying to use curl to connect to pnevn.run by running

curl https://pyenv.run | bash

Environment: Debian 12 curl 7.88.0

robnagler commented 9 months ago

This seems to be a temporary error with GitHub. If it is persistent, perhaps there's a network issue.

rufevean commented 9 months ago

Its resolved using following steps :

1)Open the /etc/hosts file using

                           sudo nvim /etc/hosts

2)Add the following IP address at the end of the file:

            185.199.108.133 raw.githubusercontent.com
robnagler commented 9 months ago

That's rather odd. DNS is resolving for me: https://dnschecker.org/#A/raw.githubusercontent.com

rufevean commented 9 months ago

might have something to do with network provider i guess?

robnagler commented 9 months ago

Yes, could be a DNS cache server that is wonky. I'll close for now.