Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection error #12

Open
shubham-scisar opened this issue Oct 26, 2021 · 0 comments
Open

Connection error #12

shubham-scisar opened this issue Oct 26, 2021 · 0 comments

Comments

@shubham-scisar
Copy link

I cloned the repo inside the docker and I am running it for custom image from inside the docker I ran :

root@27442c0c7c4c:/usr/src/app/Sat2Graph/docker/scripts# python infer_custom_input.py -input /usr/src/app/BIAL_train/1.png -gsd 0.5 -model_id 3 -output /usr/src/app/BIAL_train/out1.json

But I keep on getting the error :

<type 'str'>
Traceback (most recent call last):
  File "infer_custom_input.py", line 56, in <module>
    x = requests.post(url, data = json.dumps(msg))
  File "/root/.local/lib/python2.7/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/root/.local/lib/python2.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/root/.local/lib/python2.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/root/.local/lib/python2.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/root/.local/lib/python2.7/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))

Please guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant