Kylart / MalScraper

Scrape everything you can from MyAnimeList.net
MIT License
177 stars 49 forks source link

Timed out while running tests #36

Closed JustalK closed 4 years ago

JustalK commented 4 years ago

Hello,

I have been interested by your scrapper for MAL but by running your test, I am facing this problem : npm test

Timed out while running tests

After multiple try, I manage to see that it always appends on the same part of the code. By example, for the test checking that Naruto has 500 episode, you have a 5 recursive calls. You get all the pages one after the other. Same goes for Drifters. But Ava has a timeout error trigger if the connection is a bit too long.

aaaa

JustalK commented 4 years ago

it seems to work if I add the timeout to 1min Screenshot from 2020-08-19 01-12-20

Kylart commented 4 years ago

This might be the result of MAL being slow to answer sometimes

Kylart commented 4 years ago

So this definitely happens when MAL has problems answering requests and does not come from the library. Hence I'm closing this.