AtoraSuunva / booru

Searches boorus for images using some js magic
https://www.npmjs.com/package/booru
MIT License
75 stars 18 forks source link

Cannot read property 'toString' of undefined, node_modules\booru\dist\structures\Post.js:1:1897 #56

Closed KR0WLEY closed 3 years ago

KR0WLEY commented 3 years ago

(node:13644) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined at new Post (C:\Users\user\Desktop\Makise-master\node_modules\booru\dist\structures\Post.js:1:1897) at C:\Users\user\Desktop\Makise-master\node_modules\booru\dist\boorus\Booru.js:1:2125 at Array.map () at Booru.parseSearchResult (C:\Users\user\Desktop\Makise-master\node_modules\booru\dist\boorus\Booru.js:1:2118) at Booru.search (C:\Users\user\Desktop\Makise-master\node_modules\booru\dist\boorus\Booru.js:1:865) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)

this happens around 2 out of 10 times when I use the search function on danbooru, randomly

AtoraSuunva commented 3 years ago

Which version of booru are you using? I think 2.3.2 fixes this but I'm not sure what version you're on. If it doesn't then I've got more digging to find out what danbooru broke this time.

https://github.com/AtlasTheBot/booru/blob/master/CHANGELOG.md (Specifically I think this line is the fix) https://github.com/AtlasTheBot/booru/commit/802d8fbe47b5a54e24e364d1b640be6509854a36#diff-33a120c00b3f9987a4a0f49ea05f7aeeR180

AtoraSuunva commented 3 years ago

Assuming this is fixed, reopen it if you can reproduce it