xy137/jikan-node

findAnime('pictures') promisestatus: reject // 404 error

FaMouZx3 opened this issue · 4 comments

Hello,

I'm not sure if I found a bug or if I just did something wrong, but I wanted to use the .findAnime function to display the pictures from MAL. Unfortunately I get a promisestatus after calling the function: reject with the error code 404.

AnimeID is correct --> MAL has images to the anime --> other functions work

Maybe an idea why that might be?

Thanks for the help in advance

image

xy137 commented

hi!

can you show me the line where you’re making the request?

Sorry, ofc i can :)

image

xy137 commented

var Pictures = Mal.findAnime(results[0].animeID, 'pictures') should fix it.

You only need to specify a page if there are multiple pages and you want to get a certain page (which is what 1 is doing). If you specify a page when there is only 1 page, it will 404.

That's how it works perfectly.

Thanks for the help :)