Hi @tolmasky, no, I cannot, unfortunately(?), confirm this as I upgraded to 10.5.0 just today in a desperate attempt to try to make the code work again. And you are right, that the
bson package appears ‘missing’ when attempting to execute the endpoint using this node version. My apologies for this omission!
When attempting to understand this earlier today, I looked at the logs for version 4.0.1 (the one that worked fine until now), and saw lines for missing
bson packages. Right now, I no longer see these errors, which I don’t know how to interpret… as I didn’t change my code.
When calling the endpoint now, I’m getting error messages about
mongoose.openUri not being a function.
"message": "TypeError: mongoose.openUri is not a function",
"TypeError: mongoose.openUri is not a function",
" at exports.endpoint (eval at <anonymous> (runkit-runtime:4319:25), <anonymous>:30:18)",
" at handleRequest (runkit-runtime:4356:26)",
" at Server.<anonymous> (runkit-runtime:4239:13)",
" at emitTwo (events.js:126:13)",
" at Server.emit (events.js:214:7)",
" at parserOnIncoming (_http_server.js:619:12)",
" at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)"
This is even more weird, I have to admit, because a) the code worked before, but also b) I didn’t seemed to find the documentation for
openUri on the Mongoose website …
So, I rewrote the code to not use that function, but the documented
connect() method. Now I’m getting this:
"message": "Something unexpected happened. Please contact firstname.lastname@example.org. Please provide the case number 21f0521a-b82d-4226-8782-bfeb7a5728a5"
Does this help you help me?
Thanks for taking the time!