mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
Fixed bug where the content header was not being passed onto the post
request. Changed data => json. Added extra logging to display the error with more detail
This commit is contained in:
@@ -266,7 +266,7 @@ def _get_png_preview(url, data, notification_id):
|
||||
resp.content
|
||||
))
|
||||
raise InvalidRequest(
|
||||
'Error generating preview letter for {} \nStatus code: {}\n{}'.format(
|
||||
'Error generating preview letter for {}\nStatus code: {}\n{}'.format(
|
||||
notification_id,
|
||||
resp.status_code,
|
||||
resp.content
|
||||
|
||||
Reference in New Issue
Block a user