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

Invalid tracer argument on debug_traceTransaction #197

Open
bromulous opened this issue Aug 11, 2023 · 0 comments
Open

Invalid tracer argument on debug_traceTransaction #197

bromulous opened this issue Aug 11, 2023 · 0 comments
Labels
feature Potential feature to be added

Comments

@bromulous
Copy link

I am getting a 403 error when trying to make a debug_traceTransaction call.

The issue seems to be coming from this line
tracer = self._get_custom_calls_tracer() in web3_provider.py

The _get_custom_calls_tracer function is returning the string:
'/*\n# Copyright 2021 DAI FOUNDATION (the original version https://github.com/daifoundation/ethtx_ce)\n# Copyright 2021-2022 Token Flow Insights SA (modifications to the original software as recorded\n# in the changelog https://github.com/EthTx/ethtx/blob/master/CHANGELOG.md)\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed\n# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied... truncated for brevity.

I'm using quicknode and they do not like this as a tracer argument.

A workaround solution is to replace the use of tracer on the following line:
"debug_traceTransaction", [tx_hash, {"tracer": tracer, "timeout": "60s"}]
with "callTracer"
"debug_traceTransaction", [tx_hash, {"tracer": "callTracer", "timeout": "60s"}]

This solves the issue for me but I don't know if there are any repercussion for the rest of the program as I haven't really looked into what _get_custom_calls_tracer is supposed to do.

@bromulous bromulous changed the title Custom Call Tracer Issue with Quicknode Invalid tracer argument on debug_traceTransaction Aug 11, 2023
@kchojn kchojn added the feature Potential feature to be added label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Potential feature to be added
Projects
None yet
Development

No branches or pull requests

2 participants