jikan-me / jikan-rest

The REST API for Jikan
https://docs.api.jikan.moe/
MIT License
413 stars 268 forks source link

🐛 [HOSTED] Generated Issue: ObjectNotFound #477

Open itsTKRaz opened 5 months ago

itsTKRaz commented 5 months ago

Is there an existing issue for this?

Current Behavior

The API has returned an error: Typesense\Exceptions\ObjectNotFound Status code: 0 Message: Could not find a field named `rank` in the schema for sorting. Trace: /var/www/vendor/typesense/typesense-php/src/ApiCall.php on line 348

Expected Behavior

The API should have returned a successful response with data.

Steps To Reproduce

Http Request: `GET /v4/anime?q=Elfen+Lied&page=1

Environment

OS: Latest Debian LTS
PHP: 8.2.6
Jikan Rest: Latest (pulled today)

Anything else?

N/A

pushrbx commented 5 months ago

@itsTKRaz you need to run the indexer first, so you would have data in typesense. I'm going to create a new issue to let people know if this error happens.

pushrbx commented 5 months ago

I've created a new issue to address this: #478

itsTKRaz commented 5 months ago

@itsTKRaz you need to run the indexer first, so you would have data in typesense. I'm going to create a new issue to let people know if this error happens.

I feel like a lot of the documentation is unclear in regards to this, which made no mention of running the indexer. And some of the links in the wiki give 404 errors.

To fill the data in typesense and, is this the required command to run, just to clarify? php artisan indexer:anime or are there other recommended commands to run to get started correctly that I'm missing?

pushrbx commented 5 months ago

I've already answered somewhat on discord: https://discord.com/channels/460491088004907029/1200149578406703236/1200235685727195166

Just to elaborate a bit more, and to make a note for myself of "missing things from docs":