Quick Start - NodeJS "polling failed with EngineError: Response code 500"

Hi all. Trying to learn Camunda and tried to follow the Quick Start guide as best I could. I created the NodeJS project but when I start it ( node ./worker.js) I keep getting the following error.

polling failed with EngineError: Response code 500 (Internal Server Error); Error: {"type":"ProcessEngineException","message":"An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace."}; Type: undefined

Is there an error in the Quick Start guide or did I make a mistake?

Thanks

Do you have Camunda running?

As far as I can tell, yes. I can log into http://localhost:8080/.

Can you upload the code for your worker?

I copy-pasted the code from your Quick Start guide. I had to change the file extension to txt as uploading .js isn’t allowed.
Processing: worker.js…
worker.txt (1.0 KB)

What about this line:
const open = require('open');

Is that part of the getting started guide?
i was able to run it without that.

Is that part of the getting started guide?

Yes it is.

Scroll towards the end and you’ll find the worker.js code that I copy-pasted.

I also tried commenting out the const open = require(‘open’); line. Same error.

Not sure if it’s relevant, but if I go to http://localhost:8080/engine-rest, I get the following response.

{"type":"NotFoundException","message":"HTTP 404 Not Found"}

And I have java.exe listening to port 8080. Also found one more possible culprit, I have Java (JDK and JRE) 16.0.2.