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

TypeError when using Bull < v3.15.0 #446

Open
gabegorelick opened this issue Oct 9, 2021 · 0 comments
Open

TypeError when using Bull < v3.15.0 #446

gabegorelick opened this issue Oct 9, 2021 · 0 comments

Comments

@gabegorelick
Copy link

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.

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

1 participant