Skip to content

Cannot use object of type Elasticsearch\Common\Exceptions\Missing404Exception as array #676

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

Closed
suchman opened this issue Nov 8, 2017 · 4 comments

Comments

@suchman
Copy link

suchman commented Nov 8, 2017

Hi, first of all thanks for awesome library! But I found problem after updating on v5.3.1. When I try to check if document exists, error "Cannot use object of type Elasticsearch\Common\Exceptions\Missing404Exception as array" is shown on src\Elasticsearch\Transport.php row 118. $response varible contains object not an array ...
Is it bug or Am I doing something wrong?

Thanks for reply!

@polyfractal
Copy link
Contributor

Argh, this is a bug. I made a change in master which works on PHP 7 but not PHP 5.6, then backported the change to 5.x

I'll fix and push/tag in a minute, sorry about that!

@polyfractal
Copy link
Contributor

Tagged v5.3.2, which includes the previously committed (but not tagged) fix: c5db567

Thanks for the bug report!

@suchman
Copy link
Author

suchman commented Nov 8, 2017

Works perfectly!
Thank you for quick fix :)

@jkocour
Copy link

jkocour commented Jan 25, 2019

Hi, can you please apply the bugfix to v6.0?

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

No branches or pull requests

3 participants