Gateway Timeout

Hi,
when I try to upload my archive.zip timeout error occur:
curl “https://ipfs.infura.io:5001/api/v0/pin/addarg=/ipfs/QmXcfxnT6d3jbxvhSE6ArJrNWvXa6JsX6hdkBvRATPq3Yd

Gateway Timeout

Can someone help me with that?

Hi and welcome to the community!

Can you provide the code you are using to generate the requests and the full error response?

@mike Thanks for answer.

Code of Dockerfile:
FROM python:3
ADD price.py /
CMD [ “python3”, “./price.py” ]

Code of script just:
print(555)

In 1st terminal I run:
$ ipfs daemon

In 2nd:
$ zip -r archive.zip *

Now I’ve type command bellow to get hash of the archive.zip and ERROR appear, but before there wasn’t any error and Gateway Timeout also appear:
$ ipfs add archive.zip
ERROR: ld.so: object ‘libgtk3-nocsd.so.0’ from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
added QmdbnGqQuAi5jbMSbHxXpTtrexmPiB5DrMUzzNrA4TLX6U archive.zip

$ curl "https://ipfs.infura.io:5001/api/v0/pin/add?arg=/ipfs/QmdbnGqQuAi5jbMSbHxXpTtrexmPiB5DrMUzzNrA4TLX6U"

and after that appear:

Gateway Timeout

Am I doing something wrong?

P.S
I will add result from 1st terminal, just in case(b4 without ERROR: Id.so~ had same problem):
$ ipfs daemon
ERROR: ld.so: object ‘libgtk3-nocsd.so.0’ from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Initializing daemon…
go-ipfs version: 0.4.21-8ca278f45
Repo version: 7
System version: amd64/linux
Golang version: go1.12.6
Swarm listening on /ip4/10.0.2.15/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/172.17.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.0.2.15/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/172.17.0.1/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready

What is likely happening here is that when you add your archive.zip it is not being propagated to our nodes over the IPFS network and when you use our gateway to try and access it our nodes aren’t able to find the file over the network.

If you add the file to our service using, https://infura.io/docs/ipfs/post/add, then your file should successfully return when accessing through our gateway.

1 Like