Uncertainty about WebRTC Error definition #568
Unanswered
helu-milestone
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the WebRTC specification the following is written about an error:
This message is a [JSON-RPC] "Request notification" and shall include [JSON-RPC] "Error object" in its params field.
According to JSON-RPC specification (https://www.jsonrpc.org/specification), an "Error object" should contain an error member with the same members as defined by in ONVIF WebRTC. But does that mean that the Error should look like this:
{"jsonrpc": "2.0", "params": {"error": {"code": -32700, "message": "Parse error"}}}
or simply{"jsonrpc": "2.0", "params": {"code": -32700, "message": "Parse error"}}
Or is the ONVIF specification a bit of when talking about the params field in an error? Should the error object follow the JSON-RPC describtion of an Error(without id), as the ONVIF Spec writes that it shuld be a notification:
{"jsonrpc": "2.0", "error": {"code": -32700, "message": "Parse error"}}
Beta Was this translation helpful? Give feedback.
All reactions