AWS Thinkbox Discussion Forums

Python Error Ambiguous

Traceback (most recent call last): File "<pyshell#35>", line 1, in <module> con.Slaves.GetSlaveNames() File "\\sfs-dc\DeadlineRepository7\api\python\Deadline\Slaves.py", line 16, in GetSlaveNames return self.connectionProperties.__get__("/api/slaves?NamesOnly=true") File "\\sfs-dc\DeadlineRepository7\api\python\Deadline\ConnectionProperty.py", line 35, in __get__ return DeadlineSend.send(self.address,commandString, "GET", self.useAuth, self.user, self.password) File "\\sfs-dc\DeadlineRepository7\api\python\Deadline\DeadlineSend.py", line 35, in send response = opener.open(request) File "C:\Python27\lib\urllib2.py", line 400, in open response = self._open(req, data) File "C:\Python27\lib\urllib2.py", line 418, in _open '_open', req) File "C:\Python27\lib\urllib2.py", line 378, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 1207, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1180, in do_open r = h.getresponse(buffering=True) File "C:\Python27\lib\httplib.py", line 1030, in getresponse response.begin() File "C:\Python27\lib\httplib.py", line 407, in begin version, status, reason = self._read_status() File "C:\Python27\lib\httplib.py", line 371, in _read_status raise BadStatusLine(line) BadStatusLine: ''

Bad address? Bad port? I’m not sure what it’s trying to tell me.

Looks like our web server is either responding with an invalid status code, or it’s an issue with the host name or port:
stackoverflow.com/questions/1767 … on-httplib

Can you upload the code that you’re using to connect?

Thanks!
Ryan

Privacy | Site terms | Cookie preferences