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

fix(bullmq): update bullmq to fix error reporting #147

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

jezekra1
Copy link
Contributor

@jezekra1 jezekra1 commented Jan 6, 2025

Should fix this error and report the true error instead:

[13:38:51.017] WARN (bee-api): Worker failed {"queueName":"files-extraction-node"}
    err: {
      "type": "TypeError",
      "message": "client[commandNameWithVersion] is not a function",
      "stack":
          TypeError: client[commandNameWithVersion] is not a function
              at Scripts.execCommand (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/classes/scripts.ts:74:49)
              at <anonymous> (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/classes/job.ts:700:24)
              at <anonymous> (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/utils.ts:407:9)
              at NoopContextManager.with (/Users/radek/Code/bee-api/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/src/context/NoopContextManager.ts:31:15)
              at ContextAPI.with (/Users/radek/Code/bee-api/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/src/api/context.ts:77:42)
              at BullMQOTelContextManager.with (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq-otel/src/bullMQOtel.ts:41:32)
              at trace (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/utils.ts:406:39)
              at Worker.trace (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/classes/queue-base.ts:201:17)
              at Job.moveToFailed (/Users/radek/Code/bee-api/node_modules/.pnpm/[email protected]/node_modules/bullmq/src/classes/job.ts:694:23)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    }

@jezekra1 jezekra1 requested a review from a team as a code owner January 6, 2025 13:06
@jezekra1 jezekra1 merged commit c1e3c6d into main Jan 6, 2025
6 checks passed
@jezekra1 jezekra1 deleted the update-bullmq branch January 6, 2025 13:09
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

Successfully merging this pull request may close these issues.

2 participants