You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 22, 2020. It is now read-only.
BaseClient throwing RuntimeError: "ERROR: Unable to parse the response" #9
This is happening when I was trying to do 'addIpToNic' request. The secondary IP was successfully added but it threw an exception:
>>> cs_client.request('addIpToNic', args = {'nicid':'56ff09e3-17e2-48da-b340-6f7258d32bff','ipaddress':'192.168.0.200'}
... )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/Users/larstobi/Library/Python/2.7/site-packages/CloudStack/BaseClient.py", line 56, in request
raise RuntimeError("ERROR: Unable to parse the response")
RuntimeError: ERROR: Unable to parse the response
After checking the response and BaseClient.py, I found that the the response to this request was:
But base client was trying to parse the response and expecting the "addiptonicresponse"('addIpToNic'.lower()+'response'). Because there was a 'vm' before 'nic', it threw a RuntimeError.
This is not affecting the behavior of the function, only the job will not be returned after request is made, which makes it hard to check if the operation succeeds or not.
Activity