Skip to content

TypeError when using Bull < v3.15.0 #446

@gabegorelick

Description

@gabegorelick

When using versions of Bull before queue.isPaused was added (OptimalBits/bull@19c7e44, which was first released in https://github.com/OptimalBits/bull/blob/develop/CHANGELOG.md#v3150), you'll get the following error when clicking into a queue:

(node:28760) UnhandledPromiseRejectionWarning: TypeError: queue.isPaused is not a function
    at Object.isPaused (~/node_modules/bull-arena/src/server/views/helpers/queueHelpers.js:50:18)
    at handler (~/node_modules/bull-arena/src/server/views/dashboard/queueDetails.js:28:35)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:28760) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:28760) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Arena should either make it explicit that older versions of Bull are not supported or it shouldn't rely on queue.isPaused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions