error-info format for error response in RPCs

asked 2017-01-03 11:01:41 -0700

mahanare gravatar image

Hi All,

Happy new year!. I got this question about the error-info field in error response. What is the format we need to create this text?

I see having xml kind of syntax, but not sure if that is what works for ODL too.

Here is a sample error response for an RPC.

  "errors": {
    "error": [
        "error-type": "application",
        "error-tag": "data-missing",
        "error-message": "tp id given is not valid",
        "error-info": "<severity>error</severity>"
edit retag flag offensive close merge delete


For what it's worth. this is pure JSON.

jgray ( 2017-01-11 07:05:36 -0700 )edit

I am concerned about the content inside the "error-info" attribute. I was not sure why ODL implementation is throwing an xml snippet there instead of JSON format. if there is a specific format, that will help me out.

mahanare ( 2017-01-31 11:14:07 -0700 )edit