ethers.js: getLogs Error: failed to meet quorum

I can’t seem to find much information about this error on the internets, but when I run getLogs I very often receive this error:

(node:4431) UnhandledPromiseRejectionWarning: Error: failed to meet quorum (method="getLogs", params={"filter":{"fromBlock":"0x98ee95","address":"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000"]}}, results=[{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":-2,"_events":[],"_pollingInterval":4000,"_emitted":{"block":-2},"_fastQueryDate":1589994809982,"connection":{"url":"https://cloudflare-eth.com/"},"_nextId":44,"_internalBlockNumber":{},"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"start":1589994809978,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":43},"error":{"code":-32601}}},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994814252,"baseUrl":"https://api.etherscan.io","apiKey":"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB","_internalBlockNumber":{},"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{},"_poller":null,"_bootstrapPoll":null},"weight":1,"start":1589994809979,"error":{}},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994815808,"connection":{"url":"https://eth-mainnet.alchemyapi.io/jsonrpc/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},"_nextId":44,"apiKey":"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC","_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"start":1589994810730,"error":{}},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994815430,"connection":{"url":"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213"},"_nextId":44,"apiKey":"84842078b09946638c03157f83405213","projectId":"84842078b09946638c03157f83405213","projectSecret":null,"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"start":1589994810730,"error":{}}], provider={"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":-2,"_events":[],"_pollingInterval":4000,"_emitted":{"block":-2},"_fastQueryDate":1589994809978,"providerConfigs":[{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994815430,"connection":{"url":"https://mainnet.infura.io/v3/84842078b09946638c03157f83405213"},"_nextId":44,"apiKey":"84842078b09946638c03157f83405213","projectId":"84842078b09946638c03157f83405213","projectSecret":null,"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994814252,"baseUrl":"https://api.etherscan.io","apiKey":"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB","_internalBlockNumber":{},"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{},"_poller":null,"_bootstrapPoll":null},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":10104063,"_events":[],"_pollingInterval":4000,"_emitted":{"block":10104063},"_fastQueryDate":1589994815808,"connection":{"url":"https://eth-mainnet.alchemyapi.io/jsonrpc/_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC"},"_nextId":44,"apiKey":"_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC","_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1},{"provider":{"_isProvider":true,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"_network":{"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},"_maxInternalBlockNumber":10104063,"_lastBlockNumber":-2,"_events":[],"_pollingInterval":4000,"_emitted":{"block":-2},"_fastQueryDate":1589994809982,"connection":{"url":"https://cloudflare-eth.com/"},"_nextId":44,"_internalBlockNumber":{},"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}},"weight":1,"stallTimeout":750,"priority":1}],"quorum":2,"_highestBlockNumber":10104063,"_internalBlockNumber":{},"_fastBlockNumber":10104063,"_fastBlockNumberPromise":{}}, code=SERVER_ERROR, version=providers/5.0.0-beta.167)
    at Logger.makeError (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/logger/lib/index.js:178:21)
    at Logger.throwError (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/logger/lib/index.js:187:20)
    at FallbackProvider.<anonymous> (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/providers/lib/fallback-provider.js:626:54)
    at step (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/providers/lib/fallback-provider.js:46:23)
    at Object.next (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/providers/lib/fallback-provider.js:27:53)
    at fulfilled (/home/lastmjs/development/btc-on-ethereum/node_modules/@ethersproject/providers/lib/fallback-provider.js:18:58)

What I’m trying to do is filter through ERC20 transactions from the 0 address, to get mints. This does work, but this error is thrown so often it’s not very usable.

I’m using ethers v5.0.0-beta.187

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 31 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@ppianist are you including the react-native shims? The RN platform is missing important functionality that is shimmed by them.

See: https://docs.ethers.io/v5/cookbook/react-native/

Let me know if that helps. 😃

Oh nice, I was afraid it was a problem with infura. Thanks for the speedy response, this is why I love ethers!!! Seriously, I really appreciate it

@ricmoo Thanks! It works like a charm!

I found the bug. It has nothing to do with the fuzzy matching logic. I’ll fix it asap.

Can you provide an example query you are using?

This error happens when the backends disagree on the result. I may have to relax the response fuzzy matching for something in getLogs I’m not currently taking into account.

This is something I likely need to address, but if you’d like more background, here are the docs. Any example you can provide that occasionally trigger this would be useful.