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 HTTP transport will always return ["error" => "", "code" => 0] in case of network error. This makes debugging difficult.
At line 207 below, we check if $response is false, but it's always a string. In case of network error, it will be the empty string, json_decode() fails, and ["error" => "", "code" => 0] is returned.
The HTTP transport will always return
["error" => "", "code" => 0]
in case of network error. This makes debugging difficult.At line 207 below, we check if $response is false, but it's always a string. In case of network error, it will be the empty string, json_decode() fails, and
["error" => "", "code" => 0]
is returned.elasticsearch/src/ElasticSearch/Transport/HTTP.php
Lines 205 to 213 in d033461
Using
curl_geterrno() === 0
instead of$response !== false
fixes the problem.The text was updated successfully, but these errors were encountered: