Skip to content

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

Open
@Numer0x

Description

@Numer0x

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions