Skip to content

BooruError: Received HTTP 401 from booru: '[]' #115

@physimo

Description

@physimo

Error when trying to search a booru on Gelbooru based on ID.
When tested on Safebooru, it worked. Now I'm not sure whether other booru would return this error too.

Full error:

BooruError: Received HTTP 401 from booru: '[]'
    at Booru.doSearchRequest (<omited>\backend\node_modules\booru\dist\boorus\Booru.js:200:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Booru.search (<omited>\backend\node_modules\booru\dist\boorus\Booru.js:83:34)
    at async <omited>\backend\dist\main\child_process_modules\booru.js:62:28

code:

const metadata = (await Booru.search(SiteCode, `id:${id}`).catch(err => { return reject(err) }));

Package version: v2.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions