jimmysong / programmingbitcoin

Repository for the book
Other
1.72k stars 653 forks source link

Failed to connect to faucet.programmingbitcoin.com #161

Open AkioNak opened 5 years ago

AkioNak commented 5 years ago

I've failed to connect to the testnet faucet https://faucet.programmingbitcoin.com that has been described in Chapter4 and 7. Is there something trouble with the faucet site or network?

$ curl -v https://faucet.programmingbitcoin.com
* Rebuilt URL to: https://faucet.programmingbitcoin.com/
*   Trying 162.255.119.77...
* TCP_NODELAY set
* Connection failed
* connect to 162.255.119.77 port 443 failed: Operation timed out
* Failed to connect to faucet.programmingbitcoin.com port 443: Operation timed out
* Closing connection 0
curl: (7) Failed to connect to faucet.programmingbitcoin.com port 443: Operation timed out

For reference, accessing for http://faucet.programmingbitcoin.com that has not been described redirects my browser to https://testnet-faucet.mempool.co/.

$ curl -v http://faucet.programmingbitcoin.com
* Rebuilt URL to: http://faucet.programmingbitcoin.com/
*   Trying 162.255.119.77...
* TCP_NODELAY set
* Connected to faucet.programmingbitcoin.com (162.255.119.77) port 80 (#0)
> GET / HTTP/1.1
> Host: faucet.programmingbitcoin.com
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 302 Found
< Server: nginx
< Date: Tue, 13 Aug 2019 07:46:31 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 57
< Connection: keep-alive
< Location: https://testnet-faucet.mempool.co/
< X-Served-By: Namecheap URL Forward
< 
<a href='https://testnet-faucet.mempool.co/'>Found</a>.
chanhosuh commented 4 years ago

How did you try to access it? If you curl like in your example, it won't work since curl requires the --location option to follow redirects. The redirect does seem to be working.

AkioNak commented 4 years ago

@chanhosuh Thank you for your suggestion. Yes, the http access is working.
Originally, I want to talk about accessing the faucet via https that has been described in the text. So I have updated the issue comment a little.