Error in webhook response to include response body #3491
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Environment
Proposed Functionality
At the point where a webhook gets a response code != 2xx, I would like the raised exception to include the response body (
response.text
) - or the first 1000 characters, say. Alternatively, I'd like the response body to be logged before the exception is raised.At the moment, all you get is the numeric code and the message "webhook FAILED to process". Example captured from the django-rq admin page after selecting a failed job:
The current code:
Use Case
Debugging individual job errors at
/admin/webhook-backend-status/
. The response body might include a useful error message, or even a backtrace from the other side, but this is currently lost.Database Changes
None
External Dependencies
None
The text was updated successfully, but these errors were encountered: