[PYTHON] "No handler was ready to authenticate" error in django-ses

Event

No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV3Handler'] Check your credentials

--Work on EC2 --The above error in ECS (Fargate) --IAM Role is set correctly (Admin Role is not resolved)

solution

This error itself can occur due to other causes such as Role misconfiguration (which took a long time to investigate ...), but it can occur if the library version is old.

django-ses is unable to use ECS task roles, uses instance role instead (boto3 required?) · Issue #124 · django-ses/django-ses

Specifically, if django-ses is less than 1.0 (0.X), the authentication library boto is out of date (must be boto3 instead of boto) and can't handle ECS Roles well. An error will occur. If you get an authentication error in the ECS environment with other libraries as well, be suspicious.

Recommended Posts

"No handler was ready to authenticate" error in django-ses
How to resolve "No kernel of grammar Python found" error in Atom
How to suppress display error in matplotlib
Import Error in Python3: No module named'xxxxx'
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
AttributeError: module'urllib' has no attribute'request' error in urllib.request
[Introduction to json] No, I was addicted to it. .. .. ♬
I was able to recurse in Python: lambda
To write to Error Repoting in Python on GAE
Error when trying to install psycopg2 in Python