Broken pipe on Model Add

Hi,

I’m trying to upload my custom model but it failes with “Broken Pipe”

import requests
from io import open
model = open("idenprof.h5","rb").read()
config = open("config.json","rb").read()
response = requests.post("http://10.0.1.1:5000/v1/vision/addmodel",
files={"model":model,"config":config},data={"name":"profession"}).json()
print(response)

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 677, in urlopen
chunked=chunked,
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 1065, in _send_output
self.send(chunk)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py”, line 986, in send
self.sock.sendall(data)
BrokenPipeError: [Errno 32] Broken pipe

Thanks!