etclabscore/jade-service-runner

result has error in it

Closed this issue · 2 comments

Describe the bug
Getting errors ends up in the result key for jsonrpc

To Reproduce
Steps to reproduce the behavior:

  1. https://playground.open-rpc.org/?schemaUrl=https://services.jade.builders/
  2. Click on listServices
  3. Scroll down to the inspector
  4. enter "foo" into params: []
  5. See error

Expected behavior
I should see error at the root level:

{
   "jsonrpc": "2.0",
   "error": {}
}

Screenshots
image

fixed