torrent-ratio-faker icon indicating copy to clipboard operation
torrent-ratio-faker copied to clipboard

Protocol issue on Kodi/Quasar

Open davidMeyer666 opened this issue 7 years ago • 0 comments

When using this proxy in Kodi Quasar addon, there is error regarding protocol.

Mar 02 16:22:43 osmc trf[290]: Unhandled Error
Mar 02 16:22:43 osmc trf[290]: Traceback (most recent call last):
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger
Mar 02 16:22:43 osmc trf[290]: return callWithContext({"system": lp}, func, *args, **kw)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
Mar 02 16:22:43 osmc trf[290]: return context.call({ILogContext: newCtx}, func, *args, **kw)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
Mar 02 16:22:43 osmc trf[290]: return self.currentContext().callWithContext(ctx, func, *args, **kw)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
Mar 02 16:22:43 osmc trf[290]: return func(*args,**kw)
Mar 02 16:22:43 osmc trf[290]: --- <exception caught here> ---
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
Mar 02 16:22:43 osmc trf[290]: why = selectable.doRead()
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 214, in doRead
Mar 02 16:22:43 osmc trf[290]: return self._dataReceived(data)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 220, in _dataReceived
Mar 02 16:22:43 osmc trf[290]: rval = self.protocol.dataReceived(data)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 571, in dataReceived
Mar 02 16:22:43 osmc trf[290]: why = self.lineReceived(line)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1656, in lineReceived
Mar 02 16:22:43 osmc trf[290]: self.allContentReceived()
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1731, in allContentReceived
Mar 02 16:22:43 osmc trf[290]: req.requestReceived(command, path, version)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 827, in requestReceived
Mar 02 16:22:43 osmc trf[290]: self.process()
Mar 02 16:22:43 osmc trf[290]: File "/usr/bin/trf", line 34, in process
Mar 02 16:22:43 osmc trf[290]: proxy.ProxyRequest.process(self)
Mar 02 16:22:43 osmc trf[290]: File "/usr/lib/python2.7/dist-packages/twisted/web/proxy.py", line 147, in process
Mar 02 16:22:43 osmc trf[290]: port = self.ports[protocol]
Mar 02 16:22:43 osmc trf[290]: exceptions.KeyError: ''

Would it be possible to make it works for this plugin which is using libtorrent?

davidMeyer666 avatar Mar 08 '17 18:03 davidMeyer666