-
Notifications
You must be signed in to change notification settings - Fork 985
Elastic\Elasticsearch\Exception\ProductCheckException: The client noticed that the server is not Elasticsearch and we do not support this unknown product in file vendor\elasticsearch\elasticsearch\src\Traits\ProductCheckTrait.php on line 32 #1229
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
Comments
@creativedevs can you give me more information, including an example of the PHP code that you are using? Thanks! |
Getting error PHP Version 7.4 |
Still no fix for this? I am facing the same issue PHP Version 8.1 |
I think this is not a bug. This is a feature. @rockyru @MonkWang @creativedevs Elasticsearch PHP Client supporting just only for Elasticsearch. Not for the similar other solutions. :) |
hahaha. I need to fix this asap, I have a current deployment using laravel and I got stuck in here. Dang it! |
Could you please execute and share your response with the following request :
I am getting the following response :
As you see here, on the response header, there is
Do you get on your server? The trait checks whether the requests coming from Elasticsearch server or not. Normally, with version 8.x, you need to get this header for all responses according to this PR. So, as I said before, this is a feature :D |
This is what I am getting @hkulekci
|
So the problem is not the client, and your problem is the server. Somehow your server could not return the response correctly because |
@hkulekci but Kibana is working fine. It is just the Elasticsearch that is not returning anything when I try to access it with its default port. Any idea? |
@MonkWang I just noticed that you are using elasticsearch-php |
@rockyru did you solve the issue? Are you using an official Elasticsearch server version? Elasticsearch 8 uses security by default, that means you need to use https and a valid credential to connect to it. You can read how to configure |
I'm closing this issue. @rockyru let me know if you need to reopen it, thanks! |
hi @ezimuel , yep I've resolved the issue. Thank you! |
Summary of problem or feature request
Getting error
Elastic\Elasticsearch\Exception\ProductCheckException: The client noticed that the server is not Elasticsearch and we do not support this unknown product in file \elasticsearch\elasticsearch\src\Traits\ProductCheckTrait.php on line 32
Code snippet of problem
System details
The text was updated successfully, but these errors were encountered: