question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Internal Server Error" Data must be a string or a buffer

See original GitHub issue

There’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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bellatrix1001commented, Apr 24, 2019

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 is TypeError: Data mus be a string or a buffer

0reactions
ric2zcommented, Sep 27, 2019

bump — seeing this issue as well

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found