openzim / zimit-frontend

Zimit Public Web UI
https://zimit.kiwix.org
GNU General Public License v3.0
9 stars 8 forks source link

HTTP 500 when sending request to mailgun #68

Open benoit74 opened 1 month ago

benoit74 commented 1 month ago

Logs:

2024-07-30 06:59:26.049 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.mailgun.net:443
2024-07-30 06:59:29.320 DEBUG:urllib3.connectionpool:https://api.mailgun.net:443 "POST /v3/mg.zimit.kiwix.org/messages HTTP/1.1" 500 36
2024-07-30 06:59:29.322 ERROR:utils:Failed to send mailgun notif: 500 Server Error: Internal Server Error for url: https://api.mailgun.net/v3/mg.zimit.kiwix.org/messages
2024-07-30 06:59:29.324 ERROR:utils:500 Server Error: Internal Server Error for url: https://api.mailgun.net/v3/mg.zimit.kiwix.org/messages
2024-07-30 06:59:29.324 Traceback (most recent call last):
2024-07-30 06:59:29.324   File "/app/./utils.py", line 82, in send_email_via_mailgun
2024-07-30 06:59:29.324     resp.raise_for_status()
2024-07-30 06:59:29.324   File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 943, in raise_for_status
2024-07-30 06:59:29.324     raise HTTPError(http_error_msg, response=self)
2024-07-30 06:59:29.324 requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.mailgun.net/v3/mg.zimit.kiwix.org/messages

This is the first known occurrence AFAIK, maybe an issue on their side. Should we retry these calls?

rgaudin commented 1 month ago

I guess we should