mhils / HoneyProxy

This project is now part of @mitmproxy.
https://github.com/mitmproxy/mitmproxy/
MIT License
198 stars 43 forks source link

Webapp gives me web.Server Traceback (most recent call last): exceptions.TypeError: Can only pass-through bytes on Python 2 #79

Open mushketer888 opened 9 years ago

mushketer888 commented 9 years ago

C:\Python27\lib\site-packages\twisted\internet\defer.py:578 in _runCallbacks 577 try: 578 current.result = callback(current.result, _args, *_kw) 579 if current.result is current: C:\Python27\lib\site-packages\twisted\web\util.py:129 in _cbChild 128 def _cbChild(self, child, request): 129 request.render(resource.getChildForRequest(child, request)) 130 C:\Python27\lib\site-packages\twisted\web\server.py:238 in render 237 try: 238 body = resrc.render(self) 239 except UnsupportedMethod as e: C:\Python27\lib\site-packages\twisted\web_auth\wrapper.py:190 in render 189 request.notifyFinish().addBoth(lambda ign: logout()) 190 return super(ResourceWrapper, self).render(request) 191 C:\Python27\lib\site-packages\twisted\web\resource.py:250 in render 249 raise UnsupportedMethod(allowedMethods) 250 return m(request) 251 C:\Python27\lib\site-packages\twisted\web\static.py:631 in render_GET 630 631 producer.start() 632 # and make sure the connection doesn't get closed C:\Python27\lib\site-packages\twisted\web\static.py:710 in start 709 def start(self): 710 self.request.registerProducer(self, False) 711 C:\Python27\lib\site-packages\twisted\web\http.py:873 in registerProducer 872 else: 873 self.transport.registerProducer(producer, streaming) 874 C:\Python27\lib\site-packages\twisted\internet_newtls.py:233 in registerProducer 232 else: 233 FileDescriptor.registerProducer(self, producer, streaming) 234 C:\Python27\lib\site-packages\twisted\internet\abstract.py:112 in registerProducer 111 if not streaming: 112 producer.resumeProducing() 113 C:\Python27\lib\site-packages\twisted\web\static.py:720 in resumeProducing 719 # .resumeProducing again, so be prepared for a re-entrant call 720 self.request.write(data) 721 else: C:\Python27\lib\site-packages\twisted\web\server.py:217 in write 216 data = self._encoder.encode(data) 217 http.Request.write(self, data) 218 C:\Python27\lib\site-packages\twisted\web\http.py:1002 in write 1001 # Backward compatible cast for non-bytes values 1002 value = networkString('%s' % (value,)) 1003 l.extend([name, b": ", value, b"\r\n"]) C:\Python27\lib\site-packages\twisted\python\compat.py:364 in networkString 363 if not isinstance(s, str): 364 raise TypeError("Can only pass-through bytes on Python 2") 365 # Ensure we're limited to ASCII subset:

Something with "Twisted" i guess or....