Pin/add gateway timeout

After uploading the file to the self-built kubo service, I use the infura pin/add api to pin the file on infura, but every time infura returns gateway timeout, why? is there any additional configuration required?

for example :
cid: QmZB1wLp2EU31GAsZRhHu3SWMWyUTgoBuCK1xTfQVN7rjV
but infura api return:

curl -v -X POST -u "xxx:yyy" "https://ipfs.infura.io:5001/api/v0/pin/add?arg=QmZB1wLp2EU31GAsZRhHu3SWMWyUTgoBuCK1xTfQVN7rjV"
*   Trying 54.80.64.45:5001...
* Connected to ipfs.infura.io (54.80.64.45) port 5001 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=ipfs.infura.io
*  start date: May 15 00:00:00 2023 GMT
*  expire date: Jun 12 23:59:59 2024 GMT
*  subjectAltName: host "ipfs.infura.io" matched cert's "ipfs.infura.io"
*  issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M01
*  SSL certificate verify ok.
* Server auth using Basic with user 'xxx'
> POST /api/v0/pin/add?arg=QmZB1wLp2EU31GAsZRhHu3SWMWyUTgoBuCK1xTfQVN7rjV HTTP/1.1
> Host: ipfs.infura.io:5001
> Authorization: Basic abcabcabcxxxyyy
> User-Agent: curl/7.86.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 504 Gateway Timeout
< Content-Type: text/plain; charset=utf-8
< Vary: Origin
< X-Content-Type-Options: nosniff
< X-Robots-Tag: noindex
< Date: Mon, 31 Jul 2023 06:10:16 GMT
< Content-Length: 16
< 
Gateway Timeout
* Connection #0 to host ipfs.infura.io left intact
2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.