Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running JSON-RPC server: Missing nonce #536

Closed
jeremyjams opened this issue Jul 2, 2024 · 2 comments · Fixed by #539
Closed

Error running JSON-RPC server: Missing nonce #536

jeremyjams opened this issue Jul 2, 2024 · 2 comments · Fixed by #539
Assignees
Milestone

Comments

@jeremyjams
Copy link

Context

Hello, I'm not able to fork a remote network using edr@0.4.1. For comparison, it was running smoothly with edr@0.3.5.

networks: {
    hardhat: {
        [...]
        forking: {
            url: 'https://bellecour.iex.ec',
        },
        [...]
    },
},

Error

          throw new HardhatError(
                ^
HardhatError: HH604: Error running JSON-RPC server: Missing nonce

Details

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1B000B1", true],"id":1}' https://bellecour.iex.ec/

{
  "jsonrpc": "2.0",
  "result": {
    "author": "0xa3b079e4b54d2886ccd9cddc1335743bf1b2f0ad",
    [...]
    "timestamp": "0x664d5713",
    "transactions": [],
    "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "uncles": []
  },
  "id": 1
}

Nonce is indeed missing in blocks of this (PoA) network.

@github-project-automation github-project-automation bot moved this to Unconfirmed in EDR Jul 2, 2024
@Wodann Wodann self-assigned this Jul 2, 2024
@Wodann Wodann moved this from Unconfirmed to Todo in EDR Jul 2, 2024
@Wodann
Copy link
Member

Wodann commented Jul 2, 2024

Thanks for reporting the issue; I'm on it.

I'll add a test to EDR to validate that fetching block from that network works.

@Wodann Wodann moved this from Todo to Under Review in EDR Jul 3, 2024
@github-project-automation github-project-automation bot moved this from Under Review to Done in EDR Jul 3, 2024
@Wodann
Copy link
Member

Wodann commented Jul 5, 2024

I fixed the issue, but we decided not to include a test in our test suite as we can't rely on a reliable endpoint like Alchemy or Infura.

We'll ship the fix ASAP in our next release.

@Wodann Wodann added this to the EDR v0.4.2 milestone Jul 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants