BadRequest Django Sendgrid Integration

June 29, 2017 883 views
Django Email Ubuntu


I'm having problems sending email using sendgrid and django on Digital Ocean. I installed the package "sendgrid-django" and I get an unknown error when sending emails.

It works on my localhost but can't seem to find why it doesn't work on Digital Ocean.

This is the error message:

BadRequestsError at /accounts/twitter/login/callback/
No exception message supplied
Request Method: GET
Request URL:
Django Version: 1.9.8
Exception Type: BadRequestsError
Exception Location: /usr/local/lib/python2.7/dist-packages/python_http_client/ in _make_request, line 145
Python Executable:  /usr/bin/python
Python Version: 2.7.6
Python Path:    
Server time:    Thu, 29 Jun 2017 15:35:35 -0500
1 Answer

Hi @priveras

You need to have a look at the error logging in SendGrid:

Or maybe there is something wrong with the package, so maybe you should try to integrate it yourself:

Have another answer? Share your knowledge.