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

Authentication errors are being thrown as Server errors #38

Open
jmnsf opened this issue Sep 9, 2014 · 0 comments · May be fixed by #42
Open

Authentication errors are being thrown as Server errors #38

jmnsf opened this issue Sep 9, 2014 · 0 comments · May be fixed by #42

Comments

@jmnsf
Copy link

jmnsf commented Sep 9, 2014

When Sendgrid returns 403 bad user/pass you'd expect a SendgridTookit::AuthenticationFailed error but get a SendgirdToolkit::SendgridServerError instead:

pry(SendGridExporter)> e.class
=> SendgridToolkit::SendgridServerError
pry(SendGridExporter)> e.message
=> "The sengrid server returned an error. #<HTTParty::Response:0x1064a2638 parsed_response={\"error\"=>\"Bad username / password\"}, @response=#<Net::HTTPForbidden 403 Forbidden readbody=true>, @headers={\"server\"=>[\"nginx/1.4.4\"], \"date\"=>[\"Tue, 09 Sep 2014 09:01:26 GMT\"], \"content-type\"=>[\"text/html\"], \"transfer-encoding\"=>[\"chunked\"], \"connection\"=>[\"close\"]}>"
@dlackty dlackty linked a pull request Dec 5, 2014 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant