8000 Idle timeout reached (CommunicationException) via symfony/http-client · Issue #262 · meilisearch/meilisearch-php · GitHub
[go: up one dir, main page]

Skip to content

Idle timeout reached (CommunicationException) via symfony/http-client #262

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
caugner opened this issue Dec 6, 2021 · 2 comments
Closed

Comments

@caugner
Copy link
caugner commented Dec 6, 2021

Description
We're trying to integrate MeiliSearch into our Laravel app (using Laravel Scout), and have the official getmeili/meilisearch:v0.24.0 image running as a Docker Compose service. However, every request from meilisearch-php fails with an "Idle imeout reached" exception thrown by symfony/http-client.

This looked like symfony/symfony#44198, but upgrading to symfony/http-client 5.4.0 did not fix the issue.

The error is thrown in Symfony's TransportResponseTrait (see full stacktrace below), with $elapsedTimeout and $timeoutMax both being 0.

Expected behavior
MeiliSearch-php should be able to interact with the running MeiliSearch instance.

Current behavior
MeiliSearch-php's requests fail.

Screenshots or Logs

Environment (please complete the following information):

  • OS: Ubuntu 20.04 inside Windows 10 WSL2
  • MeiliSearch version: v0.24.0 (Docker Image)
  • meilisearch-php version: v0.20.0
MeiliSearch\Exceptions\CommunicationException : Idle timeout reached for "http://meilisearch:7700/indexes/projects/documents?primaryKey=id".
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:184
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:113
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Endpoints/Delegates/HandlesDocuments.php:30
 /var/www/html/vendor/laravel/scout/src/Engines/MeiliSearchEngine.php:69
 /var/www/html/vendor/laravel/scout/src/Searchable.php:62
 /var/www/html/vendor/laravel/scout/src/Searchable.php:41
 /var/www/html/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:124
 /var/www/html/vendor/laravel/scout/src/Searchable.php:169
 /var/www/html/vendor/laravel/scout/src/ModelObserver.php:109
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:424
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:249
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php:189
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1035
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1006
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:314
 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php:242
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:317
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:261
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:203
 /var/www/html/tests/WithProject.php:21
 /var/www/html/tests/TestCase.php:28
 
 Caused by
 Symfony\Component\HttpClient\Psr18NetworkException: Idle timeout reached for "http://meilisearch:7700/indexes/projects/documents?primaryKey=id".
 
 /var/www/html/vendor/symfony/http-client/Psr18Client.php:121
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:182
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:113
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Endpoints/Delegates/HandlesDocuments.php:30
 /var/www/html/vendor/laravel/scout/src/Engines/MeiliSearchEngine.php:69
 /var/www/html/vendor/laravel/scout/src/Searchable.php:62
 /var/www/html/vendor/laravel/scout/src/Searchable.php:41
 /var/www/html/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:124
 /var/www/html/vendor/laravel/scout/src/Searchable.php:169
 /var/www/html/vendor/laravel/scout/src/ModelObserver.php:109
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:424
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:249
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php:189
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1035
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1006
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:314
 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php:242
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:317
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:261
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:203
 /var/www/html/tests/WithProject.php:21
 /var/www/html/tests/TestCase.php:28
 
 Caused by
 Symfony\Component\HttpClient\Exception\TimeoutException: Idle timeout reached for "http://meilisearch:7700/indexes/projects/documents?primaryKey=id".
 
 /var/www/html/vendor/symfony/http-client/Chunk/ErrorChunk.php:62
 /var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php:150
 /var/www/html/vendor/symfony/http-client/Response/TransportResponseTrait.php:55
 /var/www/html/vendor/symfony/http-client/Psr18Client.php:100
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:182
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php:113
 /var/www/html/vendor/meilisearch/meilisearch-php/src/Endpoints/Delegates/HandlesDocuments.php:30
 /var/www/html/vendor/laravel/scout/src/Engines/MeiliSearchEngine.php:69
 /var/www/html/vendor/laravel/scout/src/Searchable.php:62
 /var/www/html/vendor/laravel/scout/src/Searchable.php:41
 /var/www/html/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:124
 /var/www/html/vendor/laravel/scout/src/Searchable.php:169
 /var/www/html/vendor/laravel/scout/src/ModelObserver.php:109
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:424
 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:249
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php:189
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1035
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1006
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:314
 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php:242
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:317
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:261
 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php:203
 /var/www/html/tests/WithProject.php:21
 /var/www/html/tests/TestCase.php:28
@caugner caugner changed the title Idle timeout reached Idle timeout reached (CommunicationException) via symfony/http-client Dec 6, 2021
@alallema
Copy link
Contributor
alallema commented Dec 6, 2021

Hi @caugner,
Thank you for your interest in Meilisearch.
First of all, we have a symfony SDK for MeiliSearch but perhaps it does not correspond to your need.
Second, I'm not sure I can help you as it is. Do you have an example that can be easily reproduced?

@caugner
Copy link
Author
caugner commented Dec 6, 2021

Thank you for your response, I should have already closed this issue for now, because the exception seems to be unrelated to MeiliSearch and instead related to a PHP configuration we have set: symfony/symfony#44477

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

2 participants
0