neo-modules icon indicating copy to clipboard operation
neo-modules copied to clipboard

RPC Server DebugMode

Open cschuchardt88 opened this issue 2 years ago • 3 comments

Summary or problem description Hi guys, working on neo-express. Ran into a problem where I am trying to get an error from RPC server. We use a custom express plugin to do this. However we are still using the core of RPC Server with add-ons of custom methods.

the problem is: https://github.com/neo-project/neo-modules/blob/2d7fb2778ca7ad11815e438534916103859e36ac/src/RpcServer/RpcServer.cs#L253-L268

What the problem is, we are getting error Neo.Network.RPC.RpcException: Invalid params and I want to get the real error. Sure there is workarounds for this and I know this would make NeoGo node inconsistent with C# node.

Do you have any solution you want to propose? That we have a setting in the config.json file to bypass this to show the full error.

{
  "DebugMode": "true"
}

Where in the software does this update applies to?

  • Plugins
  • RPC (HTTP)

cschuchardt88 avatar Nov 11 '23 16:11 cschuchardt88

make sense

Jim8y avatar Nov 11 '23 16:11 Jim8y

I'd just implement #814 and that's it. Try the same requests for NeoGo nodes (https://status.fs.neo.org/ has some public ones), it returns much more data even for common "invalid params" codes (data field exists exactly for that). Nothing prevents C# node from doing the same.

roman-khimov avatar Nov 11 '23 18:11 roman-khimov

Yes but

We use a custom express plugin to do this. However we are still using the core of RPC Server with add-ons of custom methods.

That's the reason why we need this feature. This is for neo-express to get and display the correct error. There is no way currently to do this.

cschuchardt88 avatar Nov 11 '23 18:11 cschuchardt88

added in #865

cschuchardt88 avatar May 09 '24 19:05 cschuchardt88