Limit in alchemyapi.io API on Autotasks Uniswap Oracle Keep3r

The Uniswap Keep3r Oracle script in Autotask stopped When manually executing it, there is a long error message with main component:

can not compute gasprice

something about limit in number of requests to alchemyapi.io, so guess the API limit for Defender has been reached

1 Like

Hi @Mash,

Welcome to the community :wave:

I am sorry that you are having this issue.

I assume that you are using the code from: https://docs.openzeppelin.com/defender/guide-keep3r#create_an_autotask?

Was using the code from Andre in his example of Oracle Uniswap Keep3r, now paused that one so error will not happen and setup a new autotask with automatic registry from your new Guide, love it! Just have to wait for activation

1 Like

Hi @abcoathup

As I shared with you earlier the autotask works, but leaving it running for 30mins or so, some of the runs occassionally encounter the error below.

Message: Error running autotask: Unhandled

Logs: 2020-11-05T04:22:53.448Z	AUTOTASK START
2020-11-05T04:22:55.104Z	ERROR	Invoke Error 	{"errorType":"Error","errorMessage":"failed to meet quorum (method=\"getBlockNumber\", params={}, results=[{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195018,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550173961,\"connection\":{\"url\":\"https://cloudflare-eth.com/\"},\"_nextId\":43,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195018,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550173879,\"result\":11195018},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550174217,\"connection\":{\"url\":\"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213\"},\"_nextId\":43,\"apiKey\":\"84842078b09946638c03157f83405213\",\"projectId\":\"84842078b09946638c03157f83405213\",\"projectSecret\":null,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550173879,\"result\":11195022},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550175042,\"baseUrl\":\"https://api.etherscan.io\",\"apiKey\":\"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB\",\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550174720,\"result\":11195022},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"connection\":{\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"},\"_nextId\":43,\"apiKey\":\"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\",\"_internalBlockNumber\":{}},\"weight\":1,\"start\":1604550174720,\"error\":{\"reason\":\"bad response\",\"code\":\"SERVER_ERROR\",\"status\":403,\"headers\":{\"date\":\"Thu, 05 Nov 2020 04:22:54 GMT\",\"content-type\":\"application/json\",\"content-length\":\"211\",\"connection\":\"close\",\"server\":\"Apache\",\"vary\":\"Origin,Accept-Encoding\"},\"body\":\"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"id\\\": 42, \\\"error\\\": {\\\"code\\\": -32000, \\\"message\\\": \\\"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.\\\"}}\",\"requestBody\":\"{\\\"method\\\":\\\"eth_blockNumber\\\",\\\"params\\\":[],\\\"id\\\":42,\\\"jsonrpc\\\":\\\"2.0\\\"}\",\"requestMethod\":\"POST\",\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"}}], provider={\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"providerConfigs\":[{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550174217,\"connection\":{\"url\":\"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213\"},\"_nextId\":43,\"apiKey\":\"84842078b09946638c03157f83405213\",\"projectId\":\"84842078b09946638c03157f83405213\",\"projectSecret\":null,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550175042,\"baseUrl\":\"https://api.etherscan.io\",\"apiKey\":\"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB\",\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"connection\":{\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"},\"_nextId\":43,\"apiKey\":\"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\",\"_internalBlockNumber\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195018,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550173961,\"connection\":{\"url\":\"https://cloudflare-eth.com/\"},\"_nextId\":43,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195018,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1}],\"quorum\":2,\"_highestBlockNumber\":-1,\"_internalBlockNumber\":{}}, code=SERVER_ERROR, version=providers/5.0.5)","code":"SERVER_ERROR","reason":"failed to meet quorum","method":"getBlockNumber","params":{},"results":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195018,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550173961,"connection":{"url":"https://cloudflare-eth.com/"},"_nextId":43,"_internalBlockNumber":{},"_fastBlockNumber":11195018,"_fastBlockNumberPromise":{}},"weight":1,"start":1604550173879,"result":11195018},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195022,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550174217,"connection":{"url":"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213"},"_nextId":43,"apiKey":"84842078b09946638c03157f83405213","projectId":"84842078b09946638c03157f83405213","projectSecret":null,"_internalBlockNumber":{},"_fastBlockNumber":11195022,"_fastBlockNumberPromise":{}},"weight":1,"start":1604550173879,"result":11195022},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195022,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550175042,"baseUrl":"https://api.etherscan.io","apiKey":"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB","_internalBlockNumber":{},"_fastBlockNumber":11195022,"_fastBlockNumberPromise":{}},"weight":1,"start":1604550174720,"result":11195022},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,"connection":{"url":"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},"_nextId":43,"apiKey":"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC","_internalBlockNumber":{}},"weight":1,"start":1604550174720,"error":{"errorType":"Error","errorMessage":"bad response (status=403, headers={\"date\":\"Thu, 05 Nov 2020 04:22:54 GMT\",\"content-type\":\"application/json\",\"content-length\":\"211\",\"connection\":\"close\",\"server\":\"Apache\",\"vary\":\"Origin,Accept-Encoding\"}, body=\"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"id\\\": 42, \\\"error\\\": {\\\"code\\\": -32000, \\\"message\\\": \\\"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.\\\"}}\", requestBody=\"{\\\"method\\\":\\\"eth_blockNumber\\\",\\\"params\\\":[],\\\"id\\\":42,\\\"jsonrpc\\\":\\\"2.0\\\"}\", requestMethod=\"POST\", url=\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\", code=SERVER_ERROR, version=web/5.0.2)","code":"SERVER_ERROR","reason":"bad response","status":403,"headers":{"date":"Thu, 05 Nov 2020 04:22:54 GMT","content-type":"application/json","content-length":"211","connection":"close","server":"Apache","vary":"Origin,Accept-Encoding"},"body":"{\"jsonrpc\": \"2.0\", \"id\": 42, \"error\": {\"code\": -32000, \"message\": \"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.\"}}","requestBody":"{\"method\":\"eth_blockNumber\",\"params\":[],\"id\":42,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC","stack":["Error: bad response (status=403, headers={\"date\":\"Thu, 05 Nov 2020 04:22:54 GMT\",\"content-type\":\"application/json\",\"content-length\":\"211\",\"connection\":\"close\",\"server\":\"Apache\",\"vary\":\"Origin,Accept-Encoding\"}, body=\"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"id\\\": 42, \\\"error\\\": {\\\"code\\\": -32000, \\\"message\\\": \\\"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.\\\"}}\", requestBody=\"{\\\"method\\\":\\\"eth_blockNumber\\\",\\\"params\\\":[],\\\"id\\\":42,\\\"jsonrpc\\\":\\\"2.0\\\"}\", requestMethod=\"POST\", url=\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\", code=SERVER_ERROR, version=web/5.0.2)","    at Logger.makeError (/opt/nodejs/node_modules/@ethersproject/logger/lib/index.js:179:21)","    at Logger.throwError (/opt/nodejs/node_modules/@ethersproject/logger/lib/index.js:188:20)","    at /opt/nodejs/node_modules/@ethersproject/web/lib/index.js:193:36","    at step (/opt/nodejs/node_modules/@ethersproject/web/lib/index.js:33:23)","    at Object.next (/opt/nodejs/node_modules/@ethersproject/web/lib/index.js:14:53)","    at fulfilled (/opt/nodejs/node_modules/@ethersproject/web/lib/index.js:5:58)","    at processTicksAndRejections (internal/process/task_queues.js:97:5)"]}}],"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,"providerConfigs":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195022,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550174217,"connection":{"url":"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213"},"_nextId":43,"apiKey":"84842078b09946638c03157f83405213","projectId":"84842078b09946638c03157f83405213","projectSecret":null,"_internalBlockNumber":{},"_fastBlockNumber":11195022,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195022,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550175042,"baseUrl":"https://api.etherscan.io","apiKey":"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB","_internalBlockNumber":{},"_fastBlockNumber":11195022,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":-1024,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":0,"connection":{"url":"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},"_nextId":43,"apiKey":"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC","_internalBlockNumber":{}},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":11195018,"_lastBlockNumber":-2,"_pollingInterval":4000,"_fastQueryDate":1604550173961,"connection":{"url":"https://cloudflare-eth.com/"},"_nextId":43,"_internalBlockNumber":{},"_fastBlockNumber":11195018,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1}],"quorum":2,"_highestBlockNumber":-1,"_internalBlockNumber":{}},"stack":["Error: failed to meet quorum (method=\"getBlockNumber\", params={}, results=[{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195018,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550173961,\"connection\":{\"url\":\"https://cloudflare-eth.com/\"},\"_nextId\":43,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195018,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550173879,\"result\":11195018},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550174217,\"connection\":{\"url\":\"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213\"},\"_nextId\":43,\"apiKey\":\"84842078b09946638c03157f83405213\",\"projectId\":\"84842078b09946638c03157f83405213\",\"projectSecret\":null,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550173879,\"result\":11195022},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550175042,\"baseUrl\":\"https://api.etherscan.io\",\"apiKey\":\"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB\",\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"start\":1604550174720,\"result\":11195022},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"connection\":{\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"},\"_nextId\":43,\"apiKey\":\"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\",\"_internalBlockNumber\":{}},\"weight\":1,\"start\":1604550174720,\"error\":{\"reason\":\"bad response\",\"code\":\"SERVER_ERROR\",\"status\":403,\"headers\":{\"date\":\"Thu, 05 Nov 2020 04:22:54 GMT\",\"content-type\":\"application/json\",\"content-length\":\"211\",\"connection\":\"close\",\"server\":\"Apache\",\"vary\":\"Origin,Accept-Encoding\"},\"body\":\"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"id\\\": 42, \\\"error\\\": {\\\"code\\\": -32000, \\\"message\\\": \\\"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.\\\"}}\",\"requestBody\":\"{\\\"method\\\":\\\"eth_blockNumber\\\",\\\"params\\\":[],\\\"id\\\":42,\\\"jsonrpc\\\":\\\"2.0\\\"}\",\"requestMethod\":\"POST\",\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"}}], provider={\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"providerConfigs\":[{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550174217,\"connection\":{\"url\":\"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213\"},\"_nextId\":43,\"apiKey\":\"84842078b09946638c03157f83405213\",\"projectId\":\"84842078b09946638c03157f83405213\",\"projectSecret\":null,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195022,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550175042,\"baseUrl\":\"https://api.etherscan.io\",\"apiKey\":\"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB\",\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195022,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":-1024,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":0,\"connection\":{\"url\":\"https://eth-mainnet.alchemyapi.io/v2/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\"},\"_nextId\":43,\"apiKey\":\"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC\",\"_internalBlockNumber\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1},{\"provider\":{\"_isProvider\":true,\"_events\":[],\"_emitted\":{\"block\":-2},\"formatter\":{\"formats\":{\"transaction\":{},\"transactionRequest\":{},\"receiptLog\":{},\"receipt\":{},\"block\":{},\"blockWithTransactions\":{},\"filter\":{},\"filterLog\":{}}},\"anyNetwork\":false,\"_network\":{\"name\":\"homestead\",\"chainId\":1,\"ensAddress\":\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\"},\"_maxInternalBlockNumber\":11195018,\"_lastBlockNumber\":-2,\"_pollingInterval\":4000,\"_fastQueryDate\":1604550173961,\"connection\":{\"url\":\"https://cloudflare-eth.com/\"},\"_nextId\":43,\"_internalBlockNumber\":{},\"_fastBlockNumber\":11195018,\"_fastBlockNumberPromise\":{}},\"weight\":1,\"stallTimeout\":750,\"priority\":1}],\"quorum\":2,\"_highestBlockNumber\":-1,\"_internalBlockNumber\":{}}, code=SERVER_ERROR, version=providers/5.0.5)","    at Logger.makeError (/opt/nodejs/node_modules/@ethersproject/logger/lib/index.js:179:21)","    at Logger.throwError (/opt/nodejs/node_modules/@ethersproject/logger/lib/index.js:188:20)","    at FallbackProvider.<anonymous> (/opt/nodejs/node_modules/@ethersproject/providers/lib/fallback-provider.js:626:54)","    at step (/opt/nodejs/node_modules/@ethersproject/providers/lib/fallback-provider.js:46:23)","    at Object.next (/opt/nodejs/node_modules/@ethersproject/providers/lib/fallback-provider.js:27:53)","    at fulfilled (/opt/nodejs/node_modules/@ethersproject/providers/lib/fallback-provider.js:18:58)"]}
2020-11-05T04:22:55.106Z	AUTOTASK COMPLETE

Somewhere in there I saw this message.

"Monthly capacity limit exceeded. Visit https://dashboard.alchemyapi.io/settings/billing to upgrade your scaling policy for continued service.

I assume that is a community resource. I’m not sure what the error means but since it was brought up, I thought I flag

1 Like

Hi @AlvinP,

Thanks for sharing :pray:

I have let the developers know so that we can see the best way to resolve.

From: Keep3r Autotask errored with "INVALID_ARGUMENT","reason":"invalid ENS name"

To keep things simple, the guide doesn’t mention Infura/Alchemy/Etherscan, as for most runs this should work without a specific API key for Infurat/Alchemy/Etherscan.

Coming up (from: Running a keeper from Keep3r Network on Defender)

  • Adding a custom Defender provider, so you don’t need to request an Alchemy, Infura, or Etherscan to prevent getting throttled when querying for jobs.
1 Like

As Andy mentioned, this is related to using shared provider keys in ethers.js, and not to Defender throttling your runs. We are working on a solution to this which we hope to ship soon, but if you want to fix it in your code in the meantime, you can follow the instructions here. However, unless you have coding experience, I’d suggest not modifying the autotask code.

2 Likes

3 posts were merged into an existing topic: UniswapV2Oracle has been replaced by UniswapV2SlidingOracle