crash in IPP server
jstucke opened this issue · 0 comments
jstucke commented
When POSTing to the IPP honeypot server an exception occurs (only seen when re-enabling the logging output of twisted):
Traceback (most recent call last):
File "/lib/python3.10/site-packages/twisted/protocols/basic.py", line 548, in dataReceived
why = self.lineReceived(line)
File "/lib/python3.10/site-packages/twisted/web/http.py", line 2243, in lineReceived
self.allContentReceived()
File "/lib/python3.10/site-packages/twisted/web/http.py", line 2369, in allContentReceived
req.requestReceived(command, path, version)
File "/lib/python3.10/site-packages/twisted/web/http.py", line 1003, in requestReceived
self.process()
--- <exception caught here> ---
File "/lib/python3.10/site-packages/twisted/web/server.py", line 229, in process
self.render(resrc)
File "/lib/python3.10/site-packages/twisted/web/server.py", line 294, in render
body = resrc.render(self)
File "/lib/python3.10/site-packages/twisted/web/resource.py", line 263, in render
return m(request)
File "/lib/python3.10/site-packages/honeypots/ipp_server.py", line 175, in render_POST
return self.send_response(request, b'\x01\x01\x00\x00')
builtins.AttributeError: 'MainResource' object has no attribute 'send_response'
I'm not really familiar with twisted myself. Could this maybe be a problem caused by migrating to a newer version of twisted?