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 when requesting tx receipt #1300

Closed
1 task done
amanusk opened this issue Feb 22, 2024 · 0 comments · Fixed by #1301
Closed
1 task done

Error when requesting tx receipt #1300

amanusk opened this issue Feb 22, 2024 · 0 comments · Fixed by #1301
Assignees
Labels
bug Something isn't working

Comments

@amanusk
Copy link

amanusk commented Feb 22, 2024

What happened

Fetching node.get_transactsion_receipt returns an error

Stack trace

Traceback (most recent call last):
  File "/home/amanusk/Code/Starknet/starknet-python-wallet/calldata.py", line 50, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/home/amanusk/Code/Starknet/starknet-python-wallet/calldata.py", line 43, in main
    tx = await full_node_client.get_transaction_receipt(
  File "/home/amanusk/Code/Starknet/starknet-python-wallet/venv/lib/python3.9/site-packages/starknet_py/net/full_node_client.py", line 334, in get_transaction_receipt
    TransactionReceipt, TransactionReceiptSchema().load(res, unknown=EXCLUDE)
  File "/home/amanusk/Code/Starknet/starknet-python-wallet/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 722, in load
    return self._do_load(
  File "/home/amanusk/Code/Starknet/starknet-python-wallet/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 909, in _do_load
    raise exc
marshmallow.exceptions.ValidationError: {'execution_resources': {'segment_arena_builtin': ['Unknown field.']}}

Steps to reproduce

Using RPC https://starknet-mainnet.public.blastapi.io/rpc/v0_6

  1. Code example
async def main():
    block_number = 568678
    full_node_client = FullNodeClient(node_url)
    tx = await full_node_client.get_transaction_receipt(
        "0x003c5bdbc9933f9328a1644f6d6ec6038efaec7c8bfe97f5ec7a700b44ec208d"
    )
    print(tx)

running get_transaction or get_transaction_status return valid output

SDK Version

0.19.0

Python version

Python 3.9.18

What operating system are you using?

Linux

Is there an existing issue for this?

  • I have searched the existing issues and verified no issue exits for this problem.
@amanusk amanusk added the bug Something isn't working label Feb 22, 2024
@tkumor3 tkumor3 self-assigned this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants