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] Target [Psr\Http\Client\ClientInterface] is not instantiable #220

Open
lor08 opened this issue Oct 28, 2022 · 1 comment
Open

[BUG] Target [Psr\Http\Client\ClientInterface] is not instantiable #220

lor08 opened this issue Oct 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@lor08
Copy link

lor08 commented Oct 28, 2022

Describe the bug
Target [Psr\Http\Client\ClientInterface] is not instantiable while building [Elastic\Elasticsearch\Client, Elastic\Transport\Transport].

To Reproduce
Steps to reproduce the behavior:

  1. Run a command 'php artisan scout:import'

Additional context
Installed the package

composer require matchish/laravel-scout-elasticsearch

Set env variables

SCOUT_DRIVER=Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine

Set ELASTICSEARCH_HOST env variable

I run the command to index and I get this error, what am I doing wrong?

Version
Laravel 8.83
Scout 9.4.12

@lor08 lor08 added the bug Something isn't working label Oct 28, 2022
@matchish
Copy link
Owner

Did you register ElasticSearchServiceProvider?

https://github.com/matchish/laravel-scout-elasticsearch#rocket-installation

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