Level 9
Even i tried to import Agolia it gives me this error
could it be issue with packages?
C:\laragon\www\testate>php artisan scout:import "App\Project"
InvalidArgumentException : json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded
at C:\laragon\www\testate\vendor\algolia\algoliasearch-client-php\src\RetryStrategy\ApiWrapper.php:233
229| $body = '';
230| } else {
231| $body = \json_encode($body);
232| if (JSON_ERROR_NONE !== json_last_error()) {
> 233| throw new \InvalidArgumentException(
234| 'json_encode error: '.json_last_error_msg());
235| }
236| }
237| }
Exception trace:
1 Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper::createRequest("POST", Object(Algolia\AlgoliaSearch\Http\Psr7\Uri), ["KVVHQ6QFVS", "bfdb2210fe91a855c91f61044b2ef8a8", "Algolia for PHP (2.2.0); PHP (7.2.11)
; Laravel Scout (7.0.0)", "application/json"])
C:\laragon\www\testate\vendor\algolia\algoliasearch-client-php\src\RetryStrategy\ApiWrapper.php:139
2 Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper::request("POST", "/1/indexes/projects_index/batch", Object(Algolia\AlgoliaSearch\RequestOptions\RequestOptions), [])
C:\laragon\www\testate\vendor\algolia\algoliasearch-client-php\src\RetryStrategy\ApiWrapper.php:89
Please use the argument -v to see more details.