Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.gaierror: [Errno -2] Name or service not known #150

Open
aniketmaithani opened this issue Apr 18, 2018 · 3 comments
Open

socket.gaierror: [Errno -2] Name or service not known #150

aniketmaithani opened this issue Apr 18, 2018 · 3 comments

Comments

@aniketmaithani
Copy link

I have configured the AWS SES configuration on my system. Whenever I am trying to send an email from from django.core.mail import send_mail I get the following error :

socket.gaierror: [Errno -2] Name or service not known

Whereas on my system python manage.py get_ses_statistics works fine! [Does that means my credentials are correct? ]
TIA

@GargiVyas31
Copy link

Yes, I am getting the same error!
Were you able to find a solution to this?
If yes please share

@aniketmaithani
Copy link
Author

Couple of things @GargiVyas31

  • Make sure you have installed right dependency of django-ses. As there are couple of libraries with same name.
  • Your AWS SES settings should be right. Make sure your IAM User for SES has dedicated permissions.
  • In case you still get the error try re-initiation of the IAM user for SES with new credentials.

@bdabrowski
Copy link

  • Region of SES invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants