Comment 5 for bug 1363584

Revision history for this message
venu kolli (vkolli) wrote :

Traceback when attaching a policy via api

ERROR:vnc_cfg_api_server.vnc_cfg_api_server:Exception in REST api handler:
<pre>Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 403, in handler_trap_exception
    return handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/gen/vnc_api_server_gen.py", line 2458, in network_policys_http_post
    obj_dict = request.json[key]
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 163, in __get__
    if key not in storage: storage[key] = self.getter(obj)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1020, in json
    return json_loads(self.body.read(self.MEMFILE_MAX))
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
</pre>

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 416, in handler_trap_exception
    raise e
ValueError: No JSON object could be decoded