go-opera icon indicating copy to clipboard operation
go-opera copied to clipboard

Can't call debug_traceTransaction

Open wzglgo opened this issue 3 years ago • 11 comments

brach is remotes/origin/release/txtracing/1.1.0-rc.3 start.sh add "--tracenode" afer "--tracing" start is successful but when i call debug_traceTransaction return { "jsonrpc": "2.0", "id": 2, "error": { "code": -32601, "message": "the method debug_traceTransaction does not exist/is not available" } } thx

wzglgo avatar Feb 24 '22 06:02 wzglgo

Hi @wzglgo , are you running it on the testnet?

quan8 avatar Feb 24 '22 06:02 quan8

Hi @wzglgo , are you running it on the testnet?

i'm running demo/start.sh it's looks like fakenet

wzglgo avatar Feb 24 '22 07:02 wzglgo

When I run ./demo/start.sh --tracing --tracenode in mentioned branch, it outputs ./start.sh: line 28: syntax error near unexpected token >. It looks like one > is redundant here and should be removed.

cyberbono3 avatar Feb 24 '22 16:02 cyberbono3

@wzglgo Can you share the full command for calling debug_traceTransaction, please?

cyberbono3 avatar Feb 24 '22 16:02 cyberbono3

About syntax error in start.sh,like you said one > should be removed. image I'm sure the debug api is opened @cyberbono3

wzglgo avatar Feb 25 '22 02:02 wzglgo

I also have this problem when running the node with --tracing and --tracenode flags. Is there anything else I have to enable?

mojitoce avatar Feb 25 '22 16:02 mojitoce

@wzglgo The problem might be in your empty params. Please see this post for more information.

cyberbono3 avatar Feb 28 '22 17:02 cyberbono3

@wzglgo问题可能出在您的 emptyparams中。请参阅这篇文章了解更多信息。

Run in console image @cyberbono3

wzglgo avatar Mar 01 '22 06:03 wzglgo

Hi @wzglgo , it will be added in future releases.

quan8 avatar Mar 02 '22 20:03 quan8

Hi @wzglgo, you need to use release/txtracing/1.1.0-rc.4 - the rc.3 did not provide the debug_trace api yet. Params --tracing and --tracenode are NOT needed for debug_trace commands, they are relevant for the tracing api only.

thaarok avatar May 01 '22 17:05 thaarok

Hi @wzglgo does it work now? can we close this issue?

quan8 avatar Jun 19 '22 20:06 quan8