Error 429 for CoinGecko API

{"message":"Request failed with status code 429","name":"Error","stack":"Error: Request failed with status code 429\n at createError (/workspace/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/workspace/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/workspace/node_modules/axios/lib/adapters/http.js:293:11)\n at IncomingMessage.emit (node:events:549:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/0.24.0"},"method":"get","url":"https://api.coingecko.com/api/v3/coins/solana"},"status":429}
{"message":"Request failed with status code 429","name":"Error","stack":"Error: Request failed with status code 429\n at createError (/workspace/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/workspace/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/workspace/node_modules/axios/lib/adapters/http.js:293:11)\n at IncomingMessage.emit (node:events:549:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/0.24.0"},"method":"get","url":"https://api.coingecko.com/api/v3/coins/solana"},"status":429}
6 Replies
JustJake
JustJake2y ago
Looks like you got rate limited. You’ll have to slow down your requests using your API key or get more keys
Kunal Bagaria
Kunal Bagaria2y ago
oh, barely any requests are sent from my server actually actually this is a proxy server so that users don't have to fetch the API from their end
JustJake
JustJake2y ago
Dunno what their API limit is
Kunal Bagaria
Kunal Bagaria2y ago
50/minute
JustJake
JustJake2y ago
But it’s not a Railway thing
Kunal Bagaria
Kunal Bagaria2y ago
oh I'll try redeploying to see if that solves it. Hopefully that should put the instance in a different container right? update: the error went away after re-deployment