Looks like it’s not a problem specific to Marvin.
This is the same error, but run from the interactive Python interpreter (and I
get an error returned running this command from my web browser, as well):
>>> r =
>>> requests.get('http://192.168.129.50:8096/client/api?response=json&command=listUsers&listAll=true')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in
request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475,
in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 628,
in send
r.content
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 755,
in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or
bytes()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 679,
in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: error(104,
'Connection reset by peer')", error(104, 'Connection reset by peer'))
On 11/4/16, 8:19 AM, "Tutkowski, Mike" <[email protected]> wrote:
Hi,
Does anyone know why I might suddently be getting the following error when
starting up my Marvin tests?
I see this problem on Ubuntu 14.04, but not on Mac OS X.
On both platforms, I’ve got requests 2.11.1 installed (current version).
I’ve tried un-install and re-install requests, but I get the same error.
2016-11-04 08:08:13,177 - DEBUG - Parsing Test data successful
2016-11-04 08:08:13,177 - DEBUG - Payload: {'account': 'admin', 'command':
'listUsers', 'response': 'json'}
2016-11-04 08:08:13,178 - DEBUG - ========Sending GET Cmd : listUsers=======
2016-11-04 08:08:13,336 - ERROR - __sendGetReqToCS : Exception Occurred:
("Connection broken: error(104, 'Connection reset by peer')", error(104,
'Connection reset by peer'))
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line
189, in __sendGetReqToCS
verify=self.httpsFlag)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70,
in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56,
in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line
628, in send
r.content
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line
755, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or
bytes()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line
679, in generate
raise ChunkedEncodingError(e)
Thanks!
Mike