tosunthex / CoinGecko

CoinGecko .Net Standard api wrapper
111 stars 46 forks source link

500 internal error. #51

Open bluehawana opened 1 year ago

bluehawana commented 1 year ago

Hi, I recently tested our api https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=100&page=1&sparkline=false on Azure funtion app, http app side, but every time when I tried, it returns with 500 error. while if I use this api https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd works fine. I added header to do the api call, but unfortunately, not working. Hopefully someone could give me a hand. HELLO

sachiew commented 1 year ago

hey specifically for coins/market endpoint, 2 things you might wanna try to look into:

  1. user agent: is it empty? if yes, might wanna change it
  2. how many calls are you making every minute? might wana reduce it to <5 calls/min (based on what I checked with CG API team recently).