KeyError: 'status' when trying to schedule spider
See original GitHub issueI am getting this error when trying to schedule a spider. This is happening with version 2.3.1
Traceback (most recent call last):
File "/home/molveyra/.local/share/virtualenvs/mollie-AtuAN_AE/lib/python3.8/site-packages/scrapinghub/legacy.py", line 157, in _decode_response
if data['status'] == 'ok':
KeyError: 'status'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/molveyra/.local/share/virtualenvs/mollie-AtuAN_AE/lib/python3.8/site-packages/scrapinghub/client/exceptions.py", line 69, in wrapped
return method(*args, **kwargs)
File "/home/molveyra/.local/share/virtualenvs/mollie-AtuAN_AE/lib/python3.8/site-packages/scrapinghub/client/__init__.py", line 19, in _request
return super(Connection, self)._request(*args, **kwargs)
File "/home/molveyra/.local/share/virtualenvs/mollie-AtuAN_AE/lib/python3.8/site-packages/scrapinghub/legacy.py", line 143, in _request
return self._decode_response(response, format, raw)
File "/home/molveyra/.local/share/virtualenvs/mollie-AtuAN_AE/lib/python3.8/site-packages/scrapinghub/legacy.py", line 169, in _decode_response
raise APIError("JSON response does not contain status")
scrapinghub.legacy.APIError: JSON response does not contain status
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Scrapy spider not found error - Stack Overflow
Try running scrapy list on the command line. If there is any error on the spider it will detect it. In my case,...
Read more >KeyError: Spider not found · Issue #89 · rmax/scrapy-redis
Looks like your spider code fails to load due to a missing dependency, hence the KeyError failure.
Read more >What is KeyError in Python? Dictionary and Handling Them
KeyError in Python is raised when you attempt to access a key that is not in a dictionary.
Read more >KeyError: 'Spider not found' : r/scrapy - Reddit
I have installed Scrapy in my python 3.6 virtual environment. Running command scrapy crawl myprojectname gives me this error.
Read more >Python KeyError Exceptions and How to Handle Them
A Python KeyError exception is what is raised when you try to access a key ... This information is more helpful when you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe that’s intentional - our server would react the same if credentials aren’t provided or it’s wrong, was done for security purpose. But I think we could handle it on the client side anyway to improve experience.
Agree, it should be addressed by the library