Metamask-extension: MetaMask - RPC Error: header not found

Created on 30 Sep 2019  路  16Comments  路  Source: MetaMask/metamask-extension

I don't launched a project for a 5 days and everything works fine. But now the calls like web3.eth.getBalance or contract methods returns:

{code: -32000, message: "header not found"}

Does anything changed during this period, what the header means? Will appreciate your help, thanks in advance.

T00-bug x15-Infura

Most helpful comment

im also seeing this issue today. was there ever another ticket created with infura for this?

All 16 comments

Please provide additional information that could help reproduce your issue. For example code snippets, browser/OS versions, and console/network logs could help explain your issue.

I was able to reproduce this bug. It appears to fail intermittently. This us to a bug with Infura (apparently related to load balancing) - they have a fix in development, but it's still broken in prod at the moment.

In the meantime I'd suggest retrying any requests that fail with this error

im also seeing this issue today. was there ever another ticket created with infura for this?

This issue has been causing us some trouble for the past couple of days.
Can someone prioritize it ?

what is happening?
seems this error code -32000 is

            "-32000": {
                standard: "EIP 1474",
                message: "Invalid input."
            },

more about the error
https://github.com/ethereum/EIPs/issues/136

code description meaning
-32000 INVALID_VALUE parameter contains invalid value
INVALID_VALUE 0 invalid input, e.g. missing mandatory input

Maybe something about the new version of metamask dropping support for web3

related https://github.com/MetaMask/metamask-extension/issues/7708

image

Do you get this a lot? @owocki @peculiarity

Solved it! I was on mainnet and the web3 was set to rinkeby instead so it gave this error!

@x5engine Could you explain a bit more what you mean by solved?

I am also getting the same error, It would be great if there was some sort of explanation in the error of what is happening and what the error is.
Screen Shot 2020-03-24 at 11 37 20 AM

@crazyrabbitLTC not solved. It's still happening with regularity on mainnet. Appears to be a bug with infura as @Gudahtt mentioned, but I don't know more than that.

any update on this issue? We are also experiencing this bug regularly.

the bug happens when you use something not on mainnet To be honest....

The bug is still happening. Working on Ropsten testnet.
Haven't tested on main net, but will do and let you guys know.

@01fbk let me know! I am waiting!

FYI for anyone facing the same issue. I was facing the similar issue on ropsten network I changed my network to mainnet and back to ropsten everything started to work fine.

This error seems to mean that the specified block number is not on geth.

@karankiri this solved it for me, thank you. I was getting this error when connected to a localnet and needed to switch to mainnet and back for this error to stop throwing.

I am getting this error. Does anybody have a solution. Thanks in advance.

Error to read Metamask ERC balance: {"code":-32000,"message":"header not found"}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beether picture beether  路  4Comments

1blockologist picture 1blockologist  路  3Comments

MarkOSullivan94 picture MarkOSullivan94  路  3Comments

aecc picture aecc  路  3Comments

BassBauman picture BassBauman  路  3Comments