"Internal Server Error" Data must be a string or a buffer
See original GitHub issueThere’s on job in my queue that I suspect might be in a corrupted state or simply in a state that Arena is having trouble reading. In the UI we just get the message “Internal Server Error”. I’m running version 2.5.2
TypeError: Data must be a string or a buffer
at Hash.update (crypto.js:99)
at Object.hashIdAttr (/usr/src/app/node_modules/bull-arena/src/server/views/helpers/handlebars.js:44)
at eval (eval at createFunctionContext (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:8)
at prog (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:221)
at execIteration (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:51)
at Object.<anonymous> (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:61)
at Object.eval (eval at createFunctionContext (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:86)
at main (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:175)
at ret (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:178)
at ret (/usr/src/app/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:526)
at ExpressHandlebars._renderTemplate (/usr/src/app/node_modules/express-handlebars/lib/express-handlebars.js:247)
at ExpressHandlebars.<anonymous> (/usr/src/app/node_modules/express-handlebars/lib/express-handlebars.js:173)
at <anonymous>
at process._tickDomainCallback (next_tick.js:229)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
(crypto.js) TypeError: Data must be string or buffer
This error is triggered by attempting to hash a variable that does not exist: function md5(msg){ return crypto.
Read more >TypeError: Data must be a string or a buffer #4072 - GitHub
I supposse it's computing a hash for a file, and a file is empty (?) or non-existent or something like that. Anyway no...
Read more >typeerror: the "data" argument must be of type string or an ...
So the error is saying the data (second argument of the fs.writeFileSync function) should be a string or a buffer...etc but instead got...
Read more >Node.js v19.3.0 Documentation
If the browser displays the string Hello, World! , that indicates the server is working. Assert#. Stability: 2 - Stable. Source Code: lib/assert.js....
Read more >Errors - Fastify
Most errors are a result of unexpected input data, so we recommend validating ... default error handler for a generic 500 Internal Server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue. I tried deleted a stuck job that won’t go away from the “Active” tab by manually running:
127.0.0.1:6379: del bull:file:123456
Now the /file/active end point will not load at all: Internal Server Error In the logs, the error isTypeError: Data mus be a string or a buffer
bump — seeing this issue as well