-
Notifications
You must be signed in to change notification settings - Fork 8
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
Better error handling #2
Comments
Things to look at (not an exhaustive list):
|
Here is the scrapyd code for the API, having several error responses. |
Note that if you're working on this with a team, it can make sense to split this issue up in multiple smaller ones. |
Did some tests on the original scrapyd, but error handling is not very well worked out:
I think we can follow that. |
Errors related to invalid query and form parameters have been (mostly?) fixed. |
A next step could be to handle exceptions and return a JSON-based error message, instead of http 500 server error (this may break clients). The main config-related error (where the daemon doesn't crash before starting) is when a project repository is missing in the configuration. That would be something to improve, either on load or when it is being used. |
A small number of error-cases is handled (i.e. an error API response is returned).
Add a default error handler that returns what scrapyd would return on an error.
And handle more cases with helpful error messages.
The text was updated successfully, but these errors were encountered: