twonds / punjab

BOSH connection manager
MIT License
183 stars 49 forks source link

Latest code - Unhandled Error in httpb.py #69

Closed tsnork closed 5 years ago

tsnork commented 5 years ago

2019-04-12T11:03:03+0200 [-] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x0000025DA3975A90> 2019-04-12T11:03:17+0200 [-] ================================== b770819c2429a07c58bc91fed744995117242ff5 1555059797.832153 startup timeout ================================== 2019-04-12T11:03:17+0200 [-] HTTPB Error 200 2019-04-12T11:03:17+0200 [-] HTTPB Return Error: 200 -> 2019-04-12T11:03:17+0200 [-] Unhandled Error Traceback (most recent call last): File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\punjab-0.15-py3.7.egg\punjab\session.py", line 118, in doErrback self.deferred.errback(data) File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 501, in errback self._startRunCallbacks(fail) File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 568, in _startRunCallbacks self._runCallbacks() File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 654, in _runCallbacks current.result = callback(current.result, *args, **kw) --- --- File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\punjab-0.15-py3.7.egg\punjab\httpb.py", line 494, in return_error children=echildren) File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\punjab-0.15-py3.7.egg\punjab\httpb.py", line 563, in send_http_error request.setHeader("content-length", len(bxml)) File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\web\http.py", line 1271, in setHeader self.responseHeaders.setRawHeaders(name, [value]) File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\web\http_headers.py", line 220, in setRawHeaders for v in self._encodeValues(values)] File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\web\http_headers.py", line 220, in for v in self._encodeValues(values)] File "c:\users\dirk\appdata\local\programs\python\python37\lib\site-packages\twisted\web\http_headers.py", line 40, in _sanitizeLinearWhitespace return b' '.join(headerComponent.splitlines()) builtins.AttributeError: 'int' object has no attribute 'splitlines'

2019-04-12T11:04:48+0200 [-] SESSION -> Terminate