-
Notifications
You must be signed in to change notification settings - Fork 981
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
Library should make an effort to report low-level network errors #1308
Comments
@croensch can you provide an example for the |
I did not realize it's a separate library. Also i did not stumble upon the logging. Let me think if this enough IMO. |
Perhaps, the last - throw new NoNodeAvailableException($exceededMsg);
+ throw new NoNodeAvailableException($exceededMsg, 0, $e ?? null); There are a couple more places, i might create a PR to use this pattern for all of them. |
@croensch thanks, let me know if you need some help. |
Issue closed due to outdated information. We can always reopen it in case of need. |
Summary of problem or feature request
The transport or pool should make an effort to report low-level network errors that lead to
NoNodeAvailableException
.There have been a couple of issues and stackoverflow questions, that often ultimately resolved in "My nodes ARE available - it's the client that can't connect" often due to misconfiguration or circumstances (wrong host, self-signed HTTPS, Firewalls, Proxies, etc.). Since this library uses cURL by default it would be proper to wrap the cURL error into this exception.
Code snippet of problem
This does not help:
Because Transport.lastResponse is not set.
System details
The text was updated successfully, but these errors were encountered: