While giving PUT command request getting an error traceback in code
If by mistake the PUT command request formed incorrectly, instead of throwing error it is giving error in code. Following is the wrong request formed mistakenly PUT https://10.102.3.244:8443/restconf/data/ModuleName:MainContainer/subcontainer/mynode/ { { "ModuleName:subcontainer":{ "mynode" : "myValue" } } This request is raising following error in code.
Traceback (most recent call last): File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run self._callback(*self._args) File "/usr/lib/python3.5/asyncio/selector_events.py", line 669, in _read_ready self._protocol.data_received(data) File "/usr/lib/python3.5/asyncio/sslproto.py", line 506, in data_received self._app_protocol.data_received(chunk) File "/usr/local/lib/python3.5/dist-packages/restconf-0.3.4.dev2+g1be09165.d20180206-py3.5.egg/jetconf/rest_server.py", line 118, in data_received self.run_request_handler(headers, event.stream_id, body) File "/usr/local/lib/python3.5/dist-packages/restconf-0.3.4.dev2+g1be09165.d20180206-py3.5.egg/jetconf/rest_server.py", line 190, in run_request_handler resp = h(headers, data, self.client_cert) File "/usr/local/lib/python3.5/dist-packages/restconf-0.3.4.dev2+g1be09165.d20180206-py3.5.egg/jetconf/http_handlers.py", line 613, in put_api http_resp = self._put(api_pth, username, data) File "/usr/local/lib/python3.5/dist-packages/restconf-0.3.4.dev2+g1be09165.d20180206-py3.5.egg/jetconf/http_handlers.py", line 565, in _put new_root = self.ds.update_node_rpc(staging_root, rpc1, json_data) File "/usr/local/lib/python3.5/dist-packages/restconf-0.3.4.dev2+g1be09165.d20180206-py3.5.egg/jetconf/data.py", line 567, in update_node_rpc new_n = n.update(input_member_value, raw=True) File "/home/monalisa/.local/lib/python3.5/site-packages/yangson/instance.py", line 269, in update newval = self.schema_node.from_raw(value, self.json_pointer()) if raw else value File "/home/monalisa/.local/lib/python3.5/site-packages/yangson/schemanode.py", line 756, in from_raw raise RawTypeError(jptr, self.type.name + " value") TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Kindly provide support to resolve the issue.