question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getLogs Error: failed to meet quorum

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:31 (12 by maintainers)

github_iconTop GitHub Comments

10reactions
ricmoocommented, Dec 30, 2020

@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. 😃

5reactions
lastmjscommented, May 20, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a "failed to meet quorum" error - EatTheBlocks Courses
it appears this is a bug in the ethers (a library used by the Uniswap SDK). You can try to update the Uniswap...
Read more >
MKR Votes: A Quick Analysis / jpark - Observable
RuntimeError : failed to meet quorum (method="getBlockNumber", params={}, results=[{"provider":{"_isProvider":true ...
Read more >
UniswapV2SlidingOracle: failed to meet quorum - Defender
The error happens when the job is workable for instance in the Unis… ... UniswapV2SlidingOracle: failed to meet quorum · Support Defender.
Read more >
Problem with persistant mount on quorum fail when using SSL
I'll get on those logs (I assume from all servers). /var/lib/glusterd/secure-access Is the mgmt connection, right? If so, it's disabled, the ...
Read more >
Server error from the speedy nodes - Moralis Forum
The indexer is getting a lots of error since. ... to get logs from an ERC721 contract and one time to get logs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found