Skip to content

Waiting for a transaction fails on Geth 1.13.11 #3212

Closed
@antazoey

Description

@antazoey
  • Version: 6.15.0
  • Python: 3.10
  • OS: macos
  • pip freeze output
<put the output from running pip freeze here>

What was wrong?

The line:

tx = web3.eth.wait_for_transaction_receipt(hex_hash)

has issues on my local testing Geth node (inspired from geth --dev).
So I run into this issue if I check too fast:

ValueError {"message": "(-32000) transaction indexing is in progress"}

How can it be fixed?

I think raising + catching a custom error for this situation.
Like it should still wait for the timeout if we are indexing.
Right now, it is only looking for "tx not found" error.

Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.

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