Xuxe / Sinusbot-File-Importer

A CLI Tool to Import audio files via the HTTP API. Written in Python.
GNU General Public License v2.0
6 stars 7 forks source link

broken pipe to localhost #8

Open maxsupermanhd opened 5 years ago

maxsupermanhd commented 5 years ago

Success Authenticated!
Traceback (most recent call last):
  File "./sbupl.sh", line 171, in <module>
    uploadHelper(dir, bot, recursive)                   
  File "./sbupl.sh", line 136, in uploadHelper
    if bot.Upload(entryTruePath):
  File "./sbupl.sh", line 113, in Upload
    conn.request("POST", "/api/v1/bot/upload", bytes, hdr)
  File "/usr/lib/python2.7/httplib.py", line 1042, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 882, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 858, in send
    self.sock.sendall(data)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 32] Broken pipe```
TheColin21 commented 5 years ago

just had exactly the same Success Authenticated! Traceback (most recent call last): File "./sinusbot_uploader.py", line 171, in <module> uploadHelper(dir, bot, recursive) File "./sinusbot_uploader.py", line 136, in uploadHelper if bot.Upload(entryTruePath): File "./sinusbot_uploader.py", line 113, in Upload conn.request("POST", "/api/v1/bot/upload", bytes, hdr) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 873, in send self.sock.sendall(data) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 32] Broken pipe

Any fix available?

maxsupermanhd commented 5 years ago

ded