You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
[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
When the configuration file is set up this way, it can be used normally
Metadata
Typesense Version: 27.0
OS:macos 15
The text was updated successfully, but these errors were encountered:
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
[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
When the configuration file is set up this way, it can be used normally
Metadata
Typesense Version: 27.0
OS:macos 15
The text was updated successfully, but these errors were encountered: