self.channel.writeHeaders(version, code, reason, headers)\nbuiltins.AttributeError: \'NoneType\' object has no attribute \'writeHeaders\'\
Waqar Khan <[email protected]> Fri, 2 Aug 2019 19:31:22 -0400
| Newsgroups | gmane.comp.python.twisted |
|---|---|
| Message-ID | <CAJuJkHPJEiT=rqNhGTDt2oyP7bt-nzo9oFBNZ5xSNb=BikjDjg@mail.gmail.com> |
--===============8940706390638524967== Content-Type: multipart/alternative; boundary="000000000000341f92058f2ac25b" --000000000000341f92058f2ac25b Content-Type: text/plain; charset="UTF-8" Hi, I have a twisted server. And I have been seeing this annoying issue. Normally. when i develop and test it out. everything is fine.. But then I try to loadtest is via https://locust.io/ Again, everything is fine.. until I "stop" the test. Then, I see this 'Traceback (most recent call last):\n File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/events.py", line 88, in _run\n self._context.run(self._callback, *self._args)\n File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 827, in adapt\n adapt.actual.callback(extracted)\n File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 460, in callback\n self._startRunCallbacks(result)\n File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks\n self._runCallbacks()\n--- <exception caught here> ---\n File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks\n current.result = callback(current.result, *args, **kw)\n File .... File "/usr/local/lib/python3.7/site-packages/twisted/web/server.py", line 238, in write\n http.Request.write(self, data)\n File "/usr/local/lib/python3.7/site-packages/twisted/web/http.py", line 1118, in write\n self.channel.writeHeaders(version, code, reason, headers)\nbuiltins.AttributeError: \'NoneType\' object has no attribute \'writeHeaders\'\n' I found this similar bug report: https://github.com/buildbot/buildbot/issues/4045 But I am using 19.2.1 twisted version.. Again, this is only triggered when I "stop" the locust io test. Any suggestions? --000000000000341f92058f2ac25b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div>=C2=A0 I have a twisted server. And I have been se= eing this annoying issue.</div><div>Normally. when i develop and test it ou= t. everything is fine..<br>But then I try to loadtest is via=C2=A0<a href= =3D"https://locust.io/">https://locust.io/</a></div><div><br></div><div>Aga= in, everything is fine.. until I "stop" the test.</div><div>Then,= I see this<br>'Traceback (most recent call last):\n =C2=A0File "/= usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/= python3.7/asyncio/events.py", line 88, in _run\n =C2=A0 =C2=A0self._co= ntext.run(self._callback, *self._args)\n =C2=A0File "/usr/local/lib/py= thon3.7/site-packages/twisted/internet/defer.py", line 827, in adapt\n= =C2=A0 =C2=A0adapt.actual.callback(extracted)\n =C2=A0File "/usr/loca= l/lib/python3.7/site-packages/twisted/internet/defer.py", line 460, in= callback\n =C2=A0 =C2=A0self._startRunCallbacks(result)\n =C2=A0File "= ;/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", li= ne 568, in _startRunCallbacks\n =C2=A0 =C2=A0self._runCallbacks()\n--- <= exception caught here> ---\n =C2=A0File "/usr/local/lib/python3.7/s= ite-packages/twisted/internet/defer.py", line 654, in _runCallbacks\n = =C2=A0 =C2=A0current.result =3D callback(current.result, *args, **kw)\n =C2= =A0File=C2=A0</div><div>....</div><div>=C2=A0File "/usr/local/lib/pyth= on3.7/site-packages/twisted/web/server.py", line 238, in write\n =C2= =A0 =C2=A0http.Request.write(self, data)\n =C2=A0File "/usr/local/lib/= python3.7/site-packages/twisted/web/http.py", line 1118, in write\n = =C2=A0 =C2=A0self.channel.writeHeaders(version, code, reason, headers)\nbui= ltins.AttributeError: \'NoneType\' object has no attribute \'wr= iteHeaders\'\n'<br></div><div><br></div><div><br></div><div>I found= this similar bug report:=C2=A0<a href=3D"https://github.com/buildbot/build= bot/issues/4045">https://github.com/buildbot/buildbot/issues/4045</a></div>= <div>But I am using=C2=A019.2.1 twisted version..</div><div>Again, this is = only triggered when I "stop" the locust io test.</div><div>Any su= ggestions?</div></div> --000000000000341f92058f2ac25b-- --===============8940706390638524967== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVHdpc3RlZC1Q eXRob24gbWFpbGluZyBsaXN0ClR3aXN0ZWQtUHl0aG9uQHR3aXN0ZWRtYXRyaXguY29tCmh0dHBz Oi8vdHdpc3RlZG1hdHJpeC5jb20vY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3R3aXN0ZWQtcHl0 aG9uCg== --===============8940706390638524967==--