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

v5 job file malformed #122

Open
Venipa opened this issue Oct 24, 2022 · 1 comment
Open

v5 job file malformed #122

Venipa opened this issue Oct 24, 2022 · 1 comment

Comments

@Venipa
Copy link

Venipa commented Oct 24, 2022

Description of bug
Unable to start adonis with bullmq, "Invalid or unexpected token"

To Reproduce

Steps to reproduce the behavior:

  1. Create jobs
  2. listen for queue
  3. after a few days (for me) it threw that error

image

Expected behavior

job.js not getting malformed

Exception or Error


{"type":"SyntaxError","message":"Invalid or unexpected token","stack":"/var/www/maplefiles/node_modules/bullmq/dist/cjs/classes/job.js:1\n\n\n\nSyntaxError: Invalid or unexpected token\n    at Object.compileFunction (node:vm:360:18)\n    at wrapSafe (node:internal/modules/cjs/loader:1055:15)\n    at Module._compile (node:internal/modules/cjs/loader:1090:27)\n    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n    at Module.load (node:internal/modules/cjs/loader:1004:32)\n    at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n    at Module.require (node:internal/modules/cjs/loader:1028:19)\n    at Module.Hook._require.Module.require (/usr/local/share/.config/yarn/global/node_modules/require-in-the-middle/index.js:101:39)\n    at require (node:internal/modules/cjs/helpers:102:18)\n    at Object. (/var/www/maplefiles/node_modules/bullmq/src/classes/queue-base.ts:5:1)

Screenshots

image

Environment:

  • OS: Debian 11
  • Node v16.17.1
  • Adonis 5.8.0
@Venipa
Copy link
Author

Venipa commented Oct 24, 2022

could it be that Job.discard() is causing this?

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