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

laravel-scout-typesense-driver Get config error #93

Open
Numer0x opened this issue Sep 26, 2024 · 1 comment
Open

laravel-scout-typesense-driver Get config error #93

Numer0x opened this issue Sep 26, 2024 · 1 comment

Comments

@Numer0x
Copy link

Numer0x commented Sep 26, 2024

Description

I'm trying to use the Scout extension in my Laravel 11 project with Typesense as the search engine, but I couldn't retrieve or access the configured settings.Perhaps this is because the validateConfigArray() function in Configuration.php directly retrieves node configuration instead of retrieving it through the correct path, resulting in Scout configuration being ignored since it actually resides under client-settings.

Steps to reproduce

image

image

image

[2024-09-26 04:44:02] local.ERROR: nodes is not defined. {"exception":"[object] (Typesense\Exceptions\ConfigError(code: 0): nodes is not defined. at /var/www/ResourceManager/vendor/typesense/typesense-php/src/Lib/Configuration.php:121)
[stacktrace]
#0 /var/www/ResourceManager/vendor/typesense/typesense-php/src/Lib/Configuration.php(78): Typesense\Lib\Configuration->validateConfigArray()
#1 /var/www/ResourceManager/vendor/typesense/typesense-php/src/Client.php(86): Typesense\Lib\Configuration->__construct()
#2 /var/www/ResourceManager/vendor/typesense/laravel-scout-typesense-driver/src/TypesenseServiceProvider.php(29): Typesense\Client->__construct()

Expected Behavior

image

When the configuration file is set up this way, it can be used normally

Metadata

Typesense Version: 27.0

OS:macos 15

@Numer0x
Copy link
Author

Numer0x commented Sep 26, 2024

Is there something wrong with my usage or configuration?

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

1 participant