MerginMaps / MerginMaps/db-sync

Email notification using AWS SES

Open
#147 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
53
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Email notifications fail when using AWS SES SMTP server.
The smtp_functions.py script does not log the actual error message.

Commenting out lines 45 and 46 allows mail to be sent through SES
Modifying the except on line 53 and 54 with the following led me to the issue

except Exception as err:
logging.debug(f"Failed to send notification email with error: {err}")

As a work around I am including the below in my docker run command to use the modified version of the script
-v /path/to/host/smtp_functions.py:/mergin-db-sync/smtp_functions.py

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with smtp_functions.py, especially lines 45-54, and run the email notification path against an AWS SES SMTP server to reproduce the failure. The work is done when the actual SES exception is visible in the logs and the notification behavior is verified without requiring a host-mounted replacement file.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.