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
This is the problem, you use object as array: vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php:127 if (!(isset($response['code']) && $response['code'] >=400 && $response['code'] < 500)) {
Code snippet of problem
$client is \Elasticsearch\Client $client->get([1, 'myindex'])
@szambonurek thanks for reporting the issue. It was a strange one since it does not appear at runtime. I fixed with PR #1066 including also a unit test.
Summary of problem or feature request
When document with specified id is not found there is an php exception inside Transport.php
vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php:127
vendor/react/promise/src/RejectedPromise.php:28
This is the problem, you use object as array:
vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php:127
if (!(isset($response['code']) && $response['code'] >=400 && $response['code'] < 500)) {
Code snippet of problem
$client is \Elasticsearch\Client
$client->get([1, 'myindex'])
System details
PHP 7.4.9
Ubuntu 20.04
Elastic 7.8.0
elasticsearch/elasticsearch v7.9.0
ezimuel/ringphp 1.1.2
ezimuel/guzzlestreams 3.0.1
react/promise v2.8.0
The text was updated successfully, but these errors were encountered: