There is no way to handle exceptions if request does not pass "id" attribute. JSONRPCResponseManager.handle() should always return a response with an error in case of exception in user code or if it is not possible, there should be an argument to enable this (strict) behavior.
Description
There is no way to handle exceptions if request does not pass "id" attribute.
JSONRPCResponseManager.handle()
should always return a response with an error in case of exception in user code or if it is not possible, there should be an argument to enable this (strict) behavior.Steps to Reproduce
Run this code:
Expected behavior: error response should be printed
Actual behavior:
None
is printedReproduces how often: always
Versions
all
Additional Information
If you change request to
'{"jsonrpc": "2.0", "method": "test", "params": [], "id": 1}'
it expectedly returns response with an error: