Giter VIP home page Giter VIP logo

Comments (5)

ARTWINPRO avatar ARTWINPRO commented on May 26, 2024

Trace log:
[2023-11-29 14:51:55] local.ERROR: Typesense\Documents::import(): Argument #1 ($documents) must be of type string, array given, called in /var/www/domain/vendor/typesense/laravel-scout-typesense-driver/src/Typesense.php on line 190 {"userId":2,"exception":"[object] (TypeError(code: 0): Typesense\\Documents::import(): Argument #1 ($documents) must be of type string, array given, called in /var/www/domain/vendor/typesense/laravel-scout-typesense-driver/src/Typesense.php on line 190 at /var/www/domain/vendor/typesense/typesense-php/src/Documents.php:97) [stacktrace] #0 /var/www/domain/vendor/typesense/laravel-scout-typesense-driver/src/Typesense.php(190): Typesense\\Documents->import(Array, Array) #1 /var/www/domain/vendor/typesense/laravel-scout-typesense-driver/src/Engines/TypesenseEngine.php(172): Typesense\\LaravelTypesense\\Typesense->importDocuments(Object(Typesense\\Collection), Array) #2 /var/www/domain/vendor/laravel/scout/src/Searchable.php(63): Typesense\\LaravelTypesense\\Engines\\TypesenseEngine->update(Object(Illuminate\\Database\\Eloquent\\Collection)) #3 /var/www/domain/vendor/laravel/scout/src/Searchable.php(42): App\\Models\\BaseModel->queueMakeSearchable(Object(Illuminate\\Database\\Eloquent\\Collection)) #4 /var/www/domain/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php(123): Illuminate\\Database\\Eloquent\\Collection->Laravel\\Scout\\{closure}() #5 /var/www/domain/vendor/laravel/scout/src/Searchable.php(183): Illuminate\\Support\\Collection->__call('searchable', Array) #6 /var/www/domain/vendor/laravel/scout/src/ModelObserver.php(109): App\\Models\\BaseModel->searchable() #7 /var/www/domain/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(478): Laravel\\Scout\\ModelObserver->saved(Object(App\\ApiModels\\ApiUser)) #8 /var/www/domain/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(286): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('eloquent.saved:...', Array) #9 /var/www/domain/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(266): Illuminate\\Events\\Dispatcher->invokeListeners('eloquent.saved:...', Array, false) #10 /var/www/domain/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php(188): Illuminate\\Events\\Dispatcher->dispatch('eloquent.saved:...', Array) #11 /var/www/domain/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1176): Illuminate\\Database\\Eloquent\\Model->fireModelEvent('saved', false) #12 /var/www/domain/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1149): Illuminate\\Database\\Eloquent\\Model->finishSave(Array) #13 /var/www/domain/app/ApiModels/ApiUser.php(618): Illuminate\\Database\\Eloquent\\Model->save()

from laravel-scout-typesense-driver.

ARTWINPRO avatar ARTWINPRO commented on May 26, 2024

Laravel scout: v10.6.0

from laravel-scout-typesense-driver.

Muffinman avatar Muffinman commented on May 26, 2024

I believe this is the same bug I had here: #75

I just stumbled across this myself, for some reason composer is STILL by default installing an old version. No idea why!

Solution (for me):

composer require -W typesense/laravel-scout-typesense-driver:^5.2.7

from laravel-scout-typesense-driver.

ARTWINPRO avatar ARTWINPRO commented on May 26, 2024

I believe this is the same bug I had here: #75

I just stumbled across this myself, for some reason composer is STILL by default installing an old version. No idea why!

Solution (for me):

composer require -W typesense/laravel-scout-typesense-driver:^5.2.7

I had already installed 5.2.8. The trouble is with Laravel Scout. This package is still don't support scout v10.6.0

from laravel-scout-typesense-driver.

karakhanyans avatar karakhanyans commented on May 26, 2024

The issue has been fixed with the latest release. Closing this issue.

from laravel-scout-typesense-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.