504 error on ETH2 requests

I have a request which returns a timeout 504 errror:


I need to query it, can you fix the timeout?

Hi @studnev, and welcome to the Infura community! Can you provide us with the code snippet you’re running when you get the timeout error as well as the full error? That will help us better debug with you.

curl 'https://XXX:YYY@eth2-beacon-mainnet.infura.io/eth/v1/beacon/states/828946/committees?epoch=25904'

results in

<head><title>504 Gateway Time-out</title></head>
<center><h1>504 Gateway Time-out</h1></center>

Hey @studnev - it looks like the issue may be that 828946 is a slot number, not a state ID. For example, the state root of slot 828946 is 0xc59ce43c29ce5a6eee09037a007a25e61f1f2ed16d9846fc6fe35cf60504972b. If you translate your query to https://XXX : YYY@eth2-beacon-mainnet.infura.io /eth/v1/beacon/states/0xc59ce43c29ce5a6eee09037a007a25e61f1f2ed16d9846fc6fe35cf60504972b/committees?epoch=25904 it works.