-
Notifications
You must be signed in to change notification settings - Fork 63
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
KeyError: 'status' when trying to schedule spider #156
Comments
@kalessin Is it reproducible or transient? Could you share payload you're sending (w/o project id, etc)? |
It is reproducible. It happens every time I try to schedule a spider. However, I just debugged it and the issue is that the response is {'detail': 'Authentication credentials were not provided.'} Still the issue is in the library, because it must handle this condition and print the correct failure. |
Agree, it should be addressed by the library |
An update on this. Regardless the response is 'Authentication credentials were not provided.', this really happens when the apikey is wrong, so there is a server side issue too. If I don't pass any apikey, I get correctly a runtime error:
|
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. |
Right. Still the reaction is not the same. When you provide wrong apikey, then you should also get
instead of a meaningless KeyError exception. |
I am getting this error when trying to schedule a spider. This is happening with version 2.3.1
The text was updated successfully, but these errors were encountered: