-
Notifications
You must be signed in to change notification settings - Fork 66
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
Document and throw an error to help people with CURLOPT_SSL_VERIFYPEER issues #90
Comments
Hello @akaSyntaax, I believe the issue is probably due to this: https://github.com/sendgrid/php-http-client/blob/master/lib/Client.php#L189 If you set that value to false it will work, but that would be insecure, per this issue: #81. The better fix would be to update your *.pem path, like so: https://stackoverflow.com/questions/18971983/curl-requires-curlopt-ssl-verifypeer-false With Best Regards, Elmer |
That said, we need to update the SDK to throw an error that specifically states the peer is not verified. |
Hello @thinkingserious, I updated my *.pem path as you said and this resolved my issue. Kind regards, |
Thanks for the follow up @akaSyntaax. I'm re-opening so we can properly document this and create a helpful error message. |
I have introduced three possible PRs to address this: Two PRs to alert the user to an issue:
One PR (#105) to help users whose PHP instance is having trouble locating the CA bundle. |
Issue Summary
If I try to send an email trough the sendgrid-php api I only get a timeout after a while, the email doesn't get send. There are no errors thrown. This issue happened after an update from version 3.9.0 to 3.9.1.
Steps to Reproduce
Technical details:
The text was updated successfully, but these errors were encountered: