Number of contract addresses in the request exceeds the allowed limit
michalinacienciala opened this issue · 0 comments
michalinacienciala commented
After importing an account to the wallet I see the following exceptions in the logs:
Failed to load resource: the server responded with a status of 400 ()
Error fetching price for tokens on network. Array(11) Object Error: bad response (status=400, headers={"age":"161","cache-control":"no-cache","cf-cache-status":"HIT","cf-ray":"82b084140abff288-WAW","content-type":"application/json; charset=utf-8","date":"Fri, 24 Nov 2023 09:09:56 GMT","referrer-policy":"strict-origin-when-cross-origin","server":"cloudflare","strict-transport-security":"max-age=15724800; includeSubdomains","vary":"Accept-Encoding, Origin","x-content-type-options":"nosniff","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-request-id":"138b1208-8be7-471d-a9ca-8585de8c2fa7","x-runtime":"0.001848","x-xss-protection":"0"}, body="{\"timestamp\":\"2023-11-24T09:07:15.816+00:00\",\"error_code\":10012,\"status\":{\"error_message\":\"Number of contract addresses in the request exceeds the allowed limit (10 addresses). Please note that to ensure fair usage and prevent abuse, the allowed limit may be adjusted periodically. To enjoy higher allowed limit, please subscribe to Demo plan or a paid plan at https://www.coingecko.com/en/api/pricing\"}}", requestBody=null, requestMethod="GET", url="https://api.coingecko.com/api/v3/simple/token_price/arbitrum-one?vs_currencies=USD&include_last_updated_at=true&contract_addresses=0x11820c11ff7db8b77f58cd1f29198d8689aae139,0x28d087f5eb970ab8b47e0a45a71b39b6198340c5,0x3e25e34cf8d8c98bf6f618f89dd4ae4c0e20a572,0x43484241b6d75e04c401d701072558722db0ed8a,0x6fd0920af48a2624be45e74943487b2a17e0036a,0x78f04ec76df38fcb37971efa8ecbcb33f52dae0f,0x86730d44d4791f867b0864b4fc6fef667870a7bb,0x937b252f157e33324b9c87772e2ae172998bc283,0x9f4139b2e7acb831dcd5ec3ebaa98c936eda7bd6,0xeae5797ba706691630a979a8f3840d01c9e9c7a4,0xeb7cb6b92ea26ad05d805e8f6b440f4a7457ab68", code=SERVER_ERROR, version=web/5.7.1)
at Logger.makeError (index.js:224:23)
at Logger.throwError (index.js:233:20)
at index.js:231:28
at Generator.next (<anonymous>)
at fulfilled (index.js:5:58)
logEvent @ logger.ts:208
And then every 10 min:
GET https://api.coingecko.com/api/v3/simple/token_price/arbitrum-one?vs_currencies=USD&include_last_updated_at=true&contract_addresses=0x11820c11ff7db8b77f58cd1f29198d8689aae139,0x28d087f5eb970ab8b47e0a45a71b39b6198340c5,0x3e25e34cf8d8c98bf6f618f89dd4ae4c0e20a572,0x43484241b6d75e04c401d701072558722db0ed8a,0x6fd0920af48a2624be45e74943487b2a17e0036a,0x78f04ec76df38fcb37971efa8ecbcb33f52dae0f,0x86730d44d4791f867b0864b4fc6fef667870a7bb,0x937b252f157e33324b9c87772e2ae172998bc283,0x9f4139b2e7acb831dcd5ec3ebaa98c936eda7bd6,0xeae5797ba706691630a979a8f3840d01c9e9c7a4,0xeb7cb6b92ea26ad05d805e8f6b440f4a7457ab68 400 (Bad Request)
Error fetching price for tokens on network. (11) ['0x11820c11ff7db8b77f58cd1f29198d8689aae139', '0x28d087f5eb970ab8b47e0a45a71b39b6198340c5', '0x3e25e34cf8d8c98bf6f618f89dd4ae4c0e20a572', '0x43484241b6d75e04c401d701072558722db0ed8a', '0x6fd0920af48a2624be45e74943487b2a17e0036a', '0x78f04ec76df38fcb37971efa8ecbcb33f52dae0f', '0x86730d44d4791f867b0864b4fc6fef667870a7bb', '0x937b252f157e33324b9c87772e2ae172998bc283', '0x9f4139b2e7acb831dcd5ec3ebaa98c936eda7bd6', '0xeae5797ba706691630a979a8f3840d01c9e9c7a4', '0xeb7cb6b92ea26ad05d805e8f6b440f4a7457ab68'] {name: 'Arbitrum Sepolia', baseAsset: {…}, chainID: '421614', family: 'EVM', coingeckoPlatformID: 'arbitrum-one'} Error: bad response (status=400, headers={"age":"157","cache-control":"no-cache","cf-cache-status":"HIT","cf-ray":"82b092ba6f2e351b-WAW","content-type":"application/json; charset=utf-8","date":"Fri, 24 Nov 2023 09:19:56 GMT","referrer-policy":"strict-origin-when-cross-origin","server":"cloudflare","strict-transport-security":"max-age=15724800; includeSubdomains","vary":"Accept-Encoding, Origin","x-content-type-options":"nosniff","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-request-id":"fa186387-5e0d-493f-921d-f18b44d570fe","x-runtime":"0.001925","x-xss-protection":"0"}, body="{\"timestamp\":\"2023-11-24T09:17:19.916+00:00\",\"error_code\":10012,\"status\":{\"error_message\":\"Number of contract addresses in the request exceeds the allowed limit (10 addresses). Please note that to ensure fair usage and prevent abuse, the allowed limit may be adjusted periodically. To enjoy higher allowed limit, please subscribe to Demo plan or a paid plan at https://www.coingecko.com/en/api/pricing\"}}", requestBody=null, requestMethod="GET", url="https://api.coingecko.com/api/v3/simple/token_price/arbitrum-one?vs_currencies=USD&include_last_updated_at=true&contract_addresses=0x11820c11ff7db8b77f58cd1f29198d8689aae139,0x28d087f5eb970ab8b47e0a45a71b39b6198340c5,0x3e25e34cf8d8c98bf6f618f89dd4ae4c0e20a572,0x43484241b6d75e04c401d701072558722db0ed8a,0x6fd0920af48a2624be45e74943487b2a17e0036a,0x78f04ec76df38fcb37971efa8ecbcb33f52dae0f,0x86730d44d4791f867b0864b4fc6fef667870a7bb,0x937b252f157e33324b9c87772e2ae172998bc283,0x9f4139b2e7acb831dcd5ec3ebaa98c936eda7bd6,0xeae5797ba706691630a979a8f3840d01c9e9c7a4,0xeb7cb6b92ea26ad05d805e8f6b440f4a7457ab68", code=SERVER_ERROR, version=web/5.7.1)
at Logger.makeError (index.js:224:23)
at Logger.throwError (index.js:233:20)
at index.js:231:28
at Generator.next (<anonymous>)
at fulfilled (index.js:5:58)
Tested with testertesting.eth
and 0xa5510922203f6c66b0efad2f96250a09972982d7
accounts, read-only and PK/recovery phrase imports - occurs in each case.
Tested on a fresh install of Taho extension, v. 0.51.02922c34