Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

xpub-scan is crashing with high number of address gaps #146

@vasuxdev

Description

@vasuxdev

It seems some API call restrictions or it can't handle the back to back api calls?

probing address gap...node:internal/process/promises:289

        triggerUncaughtException(err, true /* fromPromise */);
        ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "AxiosError: Request failed with status code 429".] {
code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.1.0

The workaround would be to await the response, something like this

try {
const result = await axios.post(YOUR_URL, {});
} catch (error) {
console.error(error);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions