Answer the question
In order to leave comments, you need to log in
When to return an RPC execution error message in a JSON-RPC body?
I'm reading the json-rpc specification ( https://www.jsonrpc.org/specification) and I can't figure it out - error messages are passed inside json-rpc (in the error field) only when the method cannot be executed for some reason ? If the method was called with the correct parameters, but ended incorrectly, is the error message already transmitted at a higher level? Those. for example, for a server with set(name) and get(name) functions, you will have to screw an additional level on top to report the results of executing the functions themselves (for example, return an error if an attempt is made to take a non-existent parameter and do not send at the json-rpc level error messages because the method was called successfully)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question