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: Cannot read property 'message' of undefined in Job#moveToFailed #2029

Closed
papandreou opened this issue Apr 27, 2021 · 2 comments
Closed

Comments

@papandreou
Copy link
Contributor

(carried over from #2027)

We've seen this error show up in production a couple of times:

TypeError: Cannot read property 'message' of undefined
  File "/app/node_modules/bull/lib/job.js", line 273, in Job.moveToFailed
      this.failedReason = err.message;
  File "/app/node_modules/bull/lib/queue.js", line 1084, in handleFailed
        return job.moveToFailed(err).then(jobData => {
  File "<anonymous>", line unknown, in runMicrotasks
  File "internal/process/task_queues.js", line 93, in processTicksAndRejections

It seems to happen while the server instance is shutting down or after an uncaught exception, so maybe there's a method somewhere (or ioredis) that's returning a promise that gets rejected with undefined.

I haven't been able to recreate the specific circumstances locally, but maybe you have an idea 🤗

@stale
Copy link

stale bot commented Jul 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 12, 2021
@manast manast closed this as completed in 39684e9 Jul 15, 2021
github-actions bot pushed a commit that referenced this issue Jul 15, 2021
## [3.23.2](v3.23.1...v3.23.2) (2021-07-15)

### Bug Fixes

* **job:** add default err object fixes [#2029](#2029) ([39684e9](39684e9))
@manast
Copy link
Member

manast commented Jul 15, 2021

🎉 This issue has been resolved in version 3.23.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants