从 IPFS 后端获取 429 错误

我对 Dapps 和 IPFS 相对较新。我正在尝试获取 IPFS 资产,但我的请求返回了 429 错误。这与我的 IP 有关,因为我能够成功地从我的朋友的 IP 获取。不知何故,我的 IP 受到了速率限制。

有没有办法让我在 IPFS 上白名单?如果我主持自己的 IPFS 节点,这会解决问题吗?

<html>
    <head>
        <title>429 Too Many Requests</title>
    </head>
    <body>
        <center>
            <h1>429 Too Many Requests</h1>
        </center>
        <hr>
        <center>openresty</center>
    </body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

响应标头也没有返回任何有用的信息。

access-control-allow-headers →X-Requested-With, Range, Content-Range, X-Chunked-Output, X-Stream-Output
access-control-allow-methods →GET, POST, OPTIONS
access-control-allow-origin →*
access-control-expose-headers →Content-Range, X-Chunked-Output, X-Stream-Output
content-length →568
content-type →text/html
date →Mon, 02 Aug 2021 05:51:56 GMT
server →openresty
strict-transport-security →max-age=31536000; includeSubDomains; preload
x-ipfs-pop →gateway-bank3-sg1

请帮帮我!

点赞
用户14051077
用户14051077

如果你遇到网关限制,那么看起来你是从一个中心化的位置发送请求(正如你提到的,大多数来自你自己的 IP)。如果可能的话,你可以把这个访问权去中心化,让用户使用的客户端(如果是网站,那就在网页里)访问你正在使用的网关,这样 HTTP 请求来自他们的电脑,而不是全部来自一个服务器。

然而,你也是正确的,当你问:

如果我主机我的自己的 IPFS 节点,问题会解决吗?

是的,问题将得到解决,因为你实际上在那个时候正在使用 IPFS,而不仅仅是一个网关(HTTP)。你的节点会从多个其他节点拉取数据,而不是只有一个网关节点。

2021-08-03 04:34:22