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

Socket Error after some files #7

Open recon88 opened 7 years ago

recon88 commented 7 years ago

Command: python sinusbot_uploader.py 127.0.0.1 8087 USER PASSWORD /home/all/bots/sinusbot/music/

After some files:

 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 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
Lorgie1984 commented 6 years ago

I've the same problem. Any ideas?