I bought a domain in myetherwallet.com, i set the IPFS hash to a content added in infura (QmYxT9JbszrjqcMEkSkefTgS35HZaoZEuFgHQRYsFQxqXS). The website was working on http://rocinha.eth.link/
Then I changed the IPFS hash, I changed again to the first one, and now the website is returning a 502 Bad Gateway error.
$ curl -v "http://rocinha.eth.link/"
* Trying 188.8.131.52...
* TCP_NODELAY set
* Connected to rocinha.eth.link (184.108.40.206) port 80 (#0)
> GET / HTTP/1.1
> Host: rocinha.eth.link
> User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
> Accept: */*
< HTTP/1.1 502 Bad Gateway
< Content-Type: text/html; charset=UTF-8
< Referrer-Policy: no-referrer
< Content-Length: 332
< Date: Tue, 14 Jul 2020 11:09:42 GMT
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
* Connection #0 to host rocinha.eth.link left intact
* Closing connection 0
The website is now working.
But it has been down for more than 4 hours.
Why is so?
I guess the problem came from the IPFS gateway, not from infura. Do you know what is the IPFS gateway used by an ENS domain bought at myetherwallet.com? (I was already set-up, and I don’t see how to view/change it). Or could it be a problem on infura hosting the content?
Either way, I am quite worried about the reliablility of hosting a website on ENS+IPFS. What can I do to make it as reliable as the standard web (say, as reliable as a static web hosted in https://pages.github.com/)?
Hi @dportabella the way IPFS works is when you hit the gateway it looks across the p2p network for that content hash and if it can’t find it in a certain amount of time it will report back an error.
We are not aware of how myetherwallet is hosting their IPFS gateway but depending on its configuration it can often be difficult to find content on the network.
Are you able to successfully request that hash from Infura’s gateway?
Yes. As I said, the website is working. The problem is that it stopped working and it was down for four hours. Then it was working again.
I see two source of problems:
1- the content cannot be found on the IPFS network.
This would mean that your IPFS hosting is not reliable.
2- the IPFS gateway (from HTTP to IPFS) is not reliable.
How can I know what is the IPFS gateway used by an ENS domain bought at myetherwallet? and how to change it?
Unfortunately we are not sure how myetherwallet manages their ENS/IPFS services. If you are integrating directly with one of their libraries on Github I would recommend logging an issue there. Otherwise they have a customer support form on their website.