Kylart / Nyaapi

Non-official api to access Nyaa.si and Nyaa.pantsu.cat (search, upload,...)
MIT License
108 stars 17 forks source link

Can't get uploads from User with 'searchAllByUser' #15

Closed Zhoosher closed 4 years ago

Zhoosher commented 4 years ago

So i am trying to get all the uploads from a user but it always errors out. It seems to be a 404 error that happens while requesting a page which doesnt exist (the user doesn't have more than 1000 uploads).

The code i am using:

const nyaaSearchByUser = await si.searchAllByUser('Moozzi2');

The error that i get in full is https://paste.ee/p/lKwjx.

I tried to bypass the error here in that specific case by searching for the uploaders tag [Moozzi2], which did return his uploads but i saw that there is no possibility to check the uploader in the returned object (maybe an idea to add that).

Kylart commented 4 years ago

I just released version 2.3.1 which contains the fix for this.