Comments (5)
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.
Laravel scout: v10.6.0
from laravel-scout-typesense-driver.
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.
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.
The issue has been fixed with the latest release. Closing this issue.
from laravel-scout-typesense-driver.
Related Issues (20)
- Laravel 10 Support HOT 10
- Error from Typesense on Update of Model Instance which is not in index HOT 2
- PHP 8.2 deprecation warnings HOT 1
- Laravel Scout 10? HOT 1
- Unable to sort HOT 4
- Error importing document: Field `itemStocks` not found. HOT 2
- "Undefined property: Laravel\\Scout\\Builder::$whereIns", HOT 1
- Filter in typesensne collection of objects in Laravel
- $model->unsearchable(); does not work HOT 7
- Import not working with array data. HOT 11
- Model update resets document auto-generated embeddings HOT 1
- Cannot index collection with a soft deleted first model when scout.soft_delete is true HOT 2
- Undefined property: Laravel\Scout\Builder::$whereIns
- Passing "empty" values to search query results in "Parameter `q` is required"
- Please add possibility to use Laravel Scout Builder ->options() method
- Duplicate array keys in TypesenseEngine::buildSearchParams HOT 1
- Exception when searching large datasets for common query HOT 2
- Using Multi Search after merging to Laravel Scout HOT 2
- Typesense scout import fails in Laravel 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-scout-typesense-driver.