CoinGecko-API icon indicating copy to clipboard operation
CoinGecko-API copied to clipboard

API request timeout

Open zjesko opened this issue 2 years ago • 2 comments

The following error is encountered sometimes. Error: CoinGecko API request timed out. Current timeout is: 30000 milliseconds

Is there a way to set a default timeout or auto-retry on timeout?

zjesko avatar May 09 '22 12:05 zjesko

Hello do you still need help ?

HelpSupports avatar Jun 06 '22 08:06 HelpSupports

Yes

zjesko avatar Jun 28 '22 10:06 zjesko

I have a web API hosted on Vercel and it's throwing the same error. Any tips on how to solve it?

guidospadavecchia avatar Oct 21 '22 22:10 guidospadavecchia

@guidospadavecchia may i know which endpoint is that?

sachiew avatar Oct 22 '22 02:10 sachiew

@guidospadavecchia may i know which endpoint is that?

It's the one that fetches the cryptocurrencies coin list.

guidospadavecchia avatar Oct 22 '22 03:10 guidospadavecchia

@guidospadavecchia , the payload size is quite big (750kb) might have challenge to be returned within 30sec. but i tried to query this directly on browser and it works: https://api.coingecko.com/api/v3/coins/list

sachiew avatar Oct 22 '22 03:10 sachiew

@guidospadavecchia , the payload size is quite big (750kb) might have challenge to be returned within 30sec. but i tried to query this directly on browser and it works: https://api.coingecko.com/api/v3/coins/list

I understand, it works on my computer as well. But I'm trying to host my API on Vercel and there it fails with this error. Is there any way to make the timeout longer?

guidospadavecchia avatar Oct 22 '22 03:10 guidospadavecchia