You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@croensch can you provide an example for the NoNodeAvailableException error? I think we can propose to improvement the error message in the elastic-transport-php library, since the NoNodeAvailableException is trown here. Thanks!
croensch
changed the title
Library should make an effor to report low-level network errors
Library should make an effort to report low-level network errors
Apr 14, 2023
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: