Hi,
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: http://earlist.xyz/accounts/twitter/login/callback/?oauth_token=NLRWEwAAAAAAW_laAAABXPWQ5Kg&oauth_verifier=8yKxI378ykwmoabFBL9Z8mbRYKYZrOeN
Django Version: 1.9.8
Exception Type: BadRequestsError
Exception Location: /usr/local/lib/python2.7/dist-packages/python_http_client/client.py in _make_request, line 145
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/home/django/earlist',
'/home/django',
'/usr/bin',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: Thu, 29 Jun 2017 15:35:35 -0500
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @priveras
You need to have a look at the error logging in SendGrid: https://sendgrid.com/docs/API_Reference/Web_API_v3/How_To_Use_The_Web_API_v3/errors.html
Or maybe there is something wrong with the package, so maybe you should try to integrate it yourself: https://sendgrid.com/docs/Integrate/Frameworks/django.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.