djm / python-scrapyd-api

A Python wrapper for working with Scrapyd's API.
BSD 2-Clause "Simplified" License
268 stars 32 forks source link

[Errno 111] Connection refused' #18

Closed bamal closed 3 years ago

bamal commented 3 years ago

Can anyone help me with this error please ?

I am trying to run a spider using the scrapyd API and I am getting this error.

`Traceback (most recent call last): File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/flask/app.py", line 2070, in wsgi_app response = self.full_dispatch_request() File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/flask/app.py", line 1515, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/flask/app.py", line 1513, in full_dispatch_request rv = self.dispatch_request() File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/flask/app.py", line 1499, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(req.view_args) File "/home/amal/Documents/TestMIMS/scrapyMims/crawler/endpoints.py", line 35, in receive_request scrapyd.add_version('scrapymims', '1', egg) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/scrapyd_api/scrapyd_api.py", line 44, in add_version return self.post(options) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/session_request/session_request.py", line 47, in post return self.request(method='POST', options) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/session_request/session_request.py", line 38, in request response = self.session.request(options) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, kwargs) File "/home/amal/Documents/TestMIMS/scrapyMims/venv/lib/python3.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=6800): Max retries exceeded with url: //addversion.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6179f9e490>: Failed to establish a new connection: [Errno 111] Connection refused')) 127.0.0.1 - - [09/Sep/2021 01:14:21] "POST /jobs HTTP/1.1" 500 -

Process finished with exit code 0 `