Uncertainty about WebRTC Error definition #568
-
|
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:
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:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi Henrik, I can confirm that we follow the jsonrpc spec for the error. Here is an example with a fictious error code and error message: {
"id": "some id",
"error":
{
"code": 1004,
"message": "Unknown session"
},
"jsonrpc": "2.0"
} |
Beta Was this translation helpful? Give feedback.
-
|
Ref: https://www.onvif.org/specs/stream/ONVIF-WebRTC-Spec.pdf, Section 5.2.5
|
Beta Was this translation helpful? Give feedback.
To summarize the talk, the message should be as jflevesque-genetec writes. The text in the specification will be updated to remove any misunderstanding and add examples of errors.