buttondown / roadmap

Buttondown's public roadmap
51 stars 0 forks source link

AnymailRequestsAPIError: Invalid Postmark API response format #3191

Closed sentry-io[bot] closed 3 weeks ago

sentry-io[bot] commented 1 month ago

Sentry Issue: APPLICATION-BACKEND-6W4

KeyError: 'ErrorCode'
  File "anymail/backends/postmark.py", line 65, in parse_recipient_status
    error_code = one_response["ErrorCode"]

AnymailRequestsAPIError: Invalid Postmark API response format
KeyError: 'ErrorCode'
Postmark API response 200 (OK):
{
  "Message": "Message accepted, but delivery may be delayed.",
  "MessageID": "38360f97-ff7f-44b2-bcd1-5ea94ff2af00",
  "SubmittedAt": "2024-08-05T02:03:37.0951168Z",
  "To": "amandaharrison531@gmail.com"
}
(1 additional frame(s) were not displayed)
...
  File "emails/utils/email.py", line 280, in send_markdown_email
    return prepared_email.send()
jmduke commented 3 weeks ago

Gonna file this with Anymail instead since it's technically an issue on their end.