Skip to content
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

[BUG]Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. #225

Open
HoudaAbdellaoui1 opened this issue Dec 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@HoudaAbdellaoui1
Copy link

HoudaAbdellaoui1 commented Dec 12, 2022

Describe the bug
Unable to connect to ElasticSearch after deployment to Azure :

Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. Make sure to install a package providing "php-http/async-client-implementation". You can also set a specific async library using Elastic\Transport\Transport::setAsyncClient() in file /var/www/petalens/vendor/elastic/transport/src/Transport.php

- The app is working locally and successfully connects to Elasticsearch and gets indexed data , but one it's deployed on Azure it produces the error above .

Version
Versions of Laravel, Scout, and the package.
"matchish/laravel-scout-elasticsearch": "v6.0.0",
"laravel/scout": "^9.4",
"php": "^8.0.2",

@HoudaAbdellaoui1 HoudaAbdellaoui1 added the bug Something isn't working label Dec 12, 2022
@HoudaAbdellaoui1 HoudaAbdellaoui1 changed the title [BUG]Unable to connect to ElasticSearch [BUG]Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. Make sure to install a package providing "php-http/async-client-implementation". You can also set a specific async library using Elastic\Transport\Transport::setAsyncClient() in file /var/www/petalens/vendor/elastic/transport/src/Transport.php Dec 12, 2022
@HoudaAbdellaoui1 HoudaAbdellaoui1 changed the title [BUG]Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. Make sure to install a package providing "php-http/async-client-implementation". You can also set a specific async library using Elastic\Transport\Transport::setAsyncClient() in file /var/www/petalens/vendor/elastic/transport/src/Transport.php [BUG]Elastic\Transport\Exception\NoAsyncClientException: I did not find any HTTP library with HttpAsyncClient interface. Dec 12, 2022
@hkulekci
Copy link
Contributor

hkulekci commented Feb 5, 2023

Elasticsearch client expecting an implementation of php-http/async-client-implementation. For example, one of them is php-http/guzzle7-adapter. For example, I am using this library in my projects. But some others can use another implementation. So, this is a selection for the developer for their projects. I don't know if we can force the users to use one of the implementations we select. BTW, the error is coming directly from elasticsearch official clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants