Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Nonce too low: transaction on C-Chain failing #17

@Bitcoinera

Description

@Bitcoinera

While trying to fund my Metamask address on the local C-Chain I get this error:

Error: Returned error: nonce too low
    at Object.ErrorResponse (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-core-helpers/src/errors.js:29:16)
    at /usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-core-requestmanager/src/index.js:170:36
    at XMLHttpRequest.request.onreadystatechange (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/web3-providers-http/src/index.js:111:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpResponseEnd (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
    at IncomingMessage.<anonymous> (/usr/local/go/bin/src/github.com/ava-labs/ava-faucet/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

which makes the transaction failed altogether. Tried a couple of things and saw the nonce is actually 0 when doing web3.eth.getTransactionCount(myAddress), but I am not sure is this is the nonce from Ethereum mainnet? Actually, it should be 0 too on the local C-Chain since I didn't make any transaction from that address.

Then it worked once when restarting the faucet (npm run serve) but I didn't do anything special 🤷 Strange

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions