I’m using the built-in Auth0 SendGrid integration for email sending, and I’m seeing a significant chunk (right now, maybe 30%) of SendGrid emails failing to send recently.
The email provider test emails do work fine, so my configuration seems correct in general, but passwordless login emails intermittently do not.
This is quite a major issue for me, as with passwordless it means many of my users are locked out entirely!
Can somebody please look into this? There’s an example error here: https://manage.auth0.com/dashboard/eu/httptoolkit/logs/90020201013083520471000325060793463280465020747404804130
The main error message there says:
SyntaxError: Unexpected token < in JSON at position 0 JSONPARSEERROR when parsing: <html>\r\n<head><title>406 Not Acceptable</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>406 Not Acceptable</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n
If this is an issue with SendGrid, please let me know what is wrong, and I’ll get in touch with them. Their docs say this response will only appear when an API request sends an incorrect Accept header though, and given that it sounds more likely that Auth0 is sending incorrect parameters for requests in these cases.
Thanks,
Tim