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

Bad credentials #67

Closed
dbx834 opened this issue Jan 16, 2014 · 1 comment
Closed

Bad credentials #67

dbx834 opened this issue Jan 16, 2014 · 1 comment

Comments

@dbx834
Copy link

dbx834 commented Jan 16, 2014

Hello,

I've been using sendgrid and sent thousands of mails successfully with no issues up until now. I've pasted the message as-is from the error-log...

[Thu Jan 16 10:42:04.493110 2014] [:error] [pid 24983] [client 14.98.237.254:1725] PHP Fatal error:  Uncaught exception 'SendGrid\\AuthException' with message 'Bad username / password' in .../sendgrid-php/SendGrid/Smtp.php:170

Stack trace:
#0 /var/www/walk/classes/SendGridMailer.php(88): SendGrid\\Smtp->send(Object(SendGrid\\Mail))
#1 /var/www/walk/classes/UserManager.php(361): SendGridMailer->sendMail()
#2 /var/www/walk/classes/UserManager.php(280): UserManager->sendActivationEmail()
#3 /var/www/walk/model/model.signup.php(73): UserManager->createThisUser()
#4 /var/www/walk/pages/signup.php(4): include_once('/var/www/walk/m...')\n
#5 {main}\n  thrown in /var/www/walk/static-resources/class-includes/sendgrid-php/SendGrid/Smtp.php on line 170

There were no changes in the username/ password configurations and this error is inexplicable.

Actions taken:

  • I've searched for the reasons and I stumbled across this issue Confusing error message with bad credentials #12. It was of no help.
  • For some reason, I felt it was a cache error. So, I refreshed the apache server and things worked perfectly afterwards.

I believe that this error occurs because of corrupted/ overwritten cache (perhaps for the SMTP configuration).

Even though this error is a very rare, I would like to fix it.

Thanks,
dbx834

@motdotla
Copy link
Contributor

Hi @dbx834, I do think this was related to swiftmailer and the underlying smtp. But I could not replicate.

However, I've just released v2.0.0 of this library. It removes switmailer support.

Additionally, smtp->send has been replaced with the more simple send. Under the hood, the library is taking care of all the calls and using SendGrid's faster Web API.

Give that a shot, and if you run into problems, let me know. I'll reopen this ticket and work through them with you.

Do not there are some method name changes to bring this library in-line with our others - so there might be a few lines of code in your code you will have to adjust if you upgrade to v2.0.0.

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

2 participants