
When an IPFS gateway is not working, the failure sits in one of four places: your request, the gateway's limits, content routing, or the provider that holds the data. Check them in that order, cheapest first, and let the status code tell you where to start.
TL;DR:
ipfs routing findprovsUpdated Oct 29, 2026: added IPFS Check as its own step, with what each of its results and errors means, plus a labelled diagram of the full diagnostic order.

The IPFS docs point out that a public recursive gateway is just another IPFS node, and an extra point of failure you usually can't see into. That is why reloading the page, or swapping in another gateway URL, wastes time on most failures, and a fixed order gets you to the cause faster.
The IPFS Path Gateway specification defines what each response code should mean, and most gateways follow it, so the code tells you which step to go to next.
| Status | What the spec says | Go to |
|---|---|---|
| 400 | Generic client error, for example a malformed CID or an unsupported codec | Step 2 |
| 404 | The path is not in the DAG, or the content is not retrievable from this gateway | Steps 2 and 4 |
| 410, 451 | The gateway refuses to serve the data (a denylist or legal reasons) | Try another gateway |
| 429 | Too many requests; the response should carry a Retry-After header | Step 3 |
| 500 | The gateway as a whole is unavailable | Try another gateway |
| 502, 504 | The gateway could not produce a response, for example no provider found or a timeout; retryable | Step 4 |
A curl -I request shows you the code and headers without downloading a body. In a test from 2026-10-14, a malformed CID on the AIOZ Pin public gateway returned HTTP 400 immediately. A well-formed CID that I made up, with no provider anywhere, returned nothing at all within 30 seconds, which is the "hangs, then times out" pattern rather than a fast 404, while the same CID on ipfs.io returned an immediate 429.
A 400, or a 404 on a path inside a folder, often comes from your request and not the network. Check the CID string for copy errors or a trimmed character. Then check whether the content is a single file or a directory.
A path such as /ipfs/<CID>/image.png returns 404 if the directory has no file with exactly that name, including the case. The spec also describes a 406 response when a ?format= parameter doesn't match the CID's codec, even though the data exists.
If you got a 429, or your page loads many images from one gateway, rate limits are the first suspect. AIOZ Pin's limits page is one example: it lists 15 requests per minute per CID, across all IP addresses, for its public gateway. It also caps each IP at 200 per minute and calls that gateway suitable for testing and very low volumes only.
The wider shift toward rate-limited public gateways is covered in IPFS Is Rate-Limiting Public Gateways: What Changes for You. AIOZ Pin's API and gateway rate limits are listed in one place too. If the 429 comes from ipfs.io, why ipfs.io stopped serving scripts and servers explains the change and who runs the public services now.
Wait for the Retry-After interval if the response has one, and don't retry in a tight loop, which keeps you rate limited. If your traffic is real production traffic, a rate limit on a shared gateway is a reason to move to a dedicated one. The guide to 429 responses and X-RateLimit headers covers backoff patterns.
If the status was 404, 502 or 504 and the request looks right, find out whether any node announces the content. The IPFS troubleshooting guide splits retrieval failures into two groups. Content routing problems mean no providers turn up in the DHT or the network indexer, while connectivity problems mean the provider is offline or unreachable.
# Ask the public delegated routing endpoint who provides the CID
curl -H "Accept: application/x-ndjson" \
"https://delegated-ipfs.dev/routing/v1/providers/<CID>"
# The same question from a Kubo node
ipfs routing findprovs <CID>
# If a provider turns up, test fetching the block from the network
ipfs block get <CID>
The delegated routing endpoint streams one JSON record per provider, and an empty result comes back as HTTP 200 with an empty body, or {"Providers":[]} in the default JSON mode; the CID I made up above returned exactly that. Delegated Routing: How Light Clients Skip Running a DHT explains what that endpoint is.
Step 4 tells you whether providers exist, and IPFS Check tells you whether you can get the data from them. It is a free web app from the IPFS project, overhauled in October 2024, and you don't need to install anything to use it.
Paste a CID on its own and IPFS Check searches both the network indexer (IPNI) and the Amino DHT for providers. For each provider, it reports where the record came from, any connection error, and whether the data is available over Bitswap and over HTTP, along with the multiaddr it used to connect. If one of those addresses contains p2p-circuit, reaching that peer needed NAT traversal through a relay.
Add a multiaddr, or just /p2p/<PeerID>, and it tests one specific node instead, which gives you an outside view of your own node. The IPFS diagnostic tools page explains the errors you may see:
The public backend behind check.ipfs.network is shared and rate limited, so it can be slow when busy. When we sent a CID-only query straight to that backend from this machine on 2026-10-29, it returned no response within 90 seconds. The ipfs-check README describes running your own instance and calling its HTTP API. These commands are quoted from the README and were not run here:
# Not run: self-host the checker (Go toolchain required)
go install github.com/ipfs/ipfs-check@latest
ipfs-check
# Not run: check one CID against one peer through the local API
curl "localhost:3333/check?cid=<CID>&multiaddr=/p2p/<PeerID>"
Read the result like this:
For your own content, look at the source before the network. A pin that still says Pinning may not be fully stored yet. IPFS Pin Stuck on Pinning? What Each Pin Status Means explains how to read the status through the API.
Check your account too if you use a paid gateway, because a gateway that stops serving files when the balance runs out looks exactly like a network failure from the outside. The AIOZ Pin case is covered in the last section below.
When you host the data yourself and providers are missing, the IPFS troubleshooting guide points to the providing cycle. Provider records expire after 48 hours, so a node must re-announce its content continuously. The guide notes that a reprovide run longer than 48 hours leaves CIDs undiscoverable.
It suggests checking ipfs stats reprovide, and gives the Accelerated DHT Client and a narrower reprovider strategy as options, each with trade-offs. Why IPFS Provider Records Expire and Get Renewed explains the mechanism.
With AIOZ Pin, three documented behaviors map onto the steps above. First, the public gateway has the per-CID and per-IP limits from Step 3, while premium gateways have no predefined rate limit. Second, the premium gateways documentation says the premium gateway turns off automatically when your account runs out of money. Your pinned files stay reachable through the public gateway, so a premium URL that fails while the public one works points to a zero balance.
Third, you can list the gateways on your account, with their host, type and active flag, through the API. The request below is copied from the docs and was not run here, since it needs real keys:
# Not run: from the AIOZ Pin Gateways API reference
curl --location --request GET 'https://api.aiozpin.network/api/gateways/?offset=0&limit=10&type=all' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET'
If active is false for your premium gateway, fix the balance before you debug IPFS. How AIOZ Pin's wallet billing works covers how to watch it. Next step: read the AIOZ Pin docs on premium gateways.
Why does an IPFS gateway return 504? The gateway could not retrieve the data from a provider within its time limit, and the spec calls this retryable. The usual causes are an offline provider, a provider nobody can reach, or content that is not announced to the network.
Why does my CID load on one gateway but not another? Gateways differ in caching, limits, and how they find providers, so if one gateway serves the file and another times out, the data exists and the problem is gateway-specific, such as a rate limit or a cold cache.
Is a 429 error a sign the content is gone? No, a 429 means the gateway is limiting your requests. Wait for the Retry-After interval, reduce how often you ask, or use a dedicated gateway.
How do I check if my CID is available on IPFS? Paste it into IPFS Check at check.ipfs.network, which finds providers through the DHT and the network indexer and tests whether each one can serve the data over Bitswap or HTTP.
What does "Multihash not advertised in the DHT" mean in IPFS Check? Your node holds the content but has not announced it to the Amino DHT, so other peers can't find it, which usually points to your node's providing cycle.
Why did my file load after an hour with no changes? Content that was only just added may not have been announced to the network yet, so early requests fail and later ones work. Providers that were offline and came back produce the same pattern.
Does pinning fix a gateway that is not working? Pinning keeps the data stored and, through a pinning service, announced. It doesn't change a gateway's own rate limits, so a pinned file can still return 429 on a busy public gateway.
p2p-circuit result
A multiaddr is a network address that names every protocol it uses, like /ip4/.../tcp/4001/p2p/ and a peer ID. Learn to read one and how IPFS peer IDs work.

IPFS bootstrap nodes are the first peers a new node dials to join the Amino DHT. See how Kubo uses them, who runs them after Shipyard, and how to edit the list.

The ipfs.io gateway now returns HTTP 429 to scripts and servers and sends browsers to inbrowser.link. See who runs the public IPFS services and what to change.

An IPFS glossary of 115 terms from A to Z: CIDs, Bitswap, the DHT, IPNS, gateways and pinning, each defined in plain words and linked to a deeper guide.

IPFS Provide Sweep is Kubo's provider that batches CIDs by DHT region, not one lookup each. See how it works, when it became default, and how to check it.

An IPFS dedicated gateway on AIOZ Pin is called a premium gateway. See what the free plan limits, what a paid plan adds, and what happens at zero balance.