Custom database (mongodb) scripts are getting timed out and Real-time Webtask Logs won't show any console.log or errors

I’m trying to integrate auth0 with mongodb, but my scripts doenst seem to work at all.
I’m using node 18 and mongo 5.7.0, the auth0 ip’s are in my whitelist. I’m getting timeout on my functions and the real time webtasks extension are not showing my console.logs in the scripts.



To anyone having the same problem: it seems that changing the node version to 16 and the mongodb version to 4.1.0 solves the problem.