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

Invalid certificate throws a misleading error #360

Open
joelwurtz opened this issue Apr 12, 2024 · 0 comments
Open

Invalid certificate throws a misleading error #360

joelwurtz opened this issue Apr 12, 2024 · 0 comments

Comments

@joelwurtz
Copy link

joelwurtz commented Apr 12, 2024

I was struggling why some of my http calls where not working, where in fact it was due to a bad ssl certificate, however amphp give an error like this :

Amp\Http\Client\SocketException: Connection to '****:443' @ '172.18.0.13:443' closed during TLS handshake at /app/tests/integration/vendor/amphp/http-client/src/Connection/DefaultConnectionFactory.php:137'

Also in this case the connection seems to be interrupted abruptly.

I think there could be a better error that show that it's an invalid certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant