Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KR0WLEY opened this issue Sep 24, 2020 · 2 comments

Comments

@KR0WLEY
Copy link

KR0WLEY commented Sep 24, 2020

(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
Copy link
Owner

AtoraSuunva commented Sep 26, 2020

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)
802d8fb#diff-33a120c00b3f9987a4a0f49ea05f7aeeR180

@AtoraSuunva
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants