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

**URL:** <https://community.auth0.com/t/custom-database-mongodb-scripts-are-getting-timed-out-and-real-time-webtask-logs-wont-show-any-console-log-or-errors/125287>\
**Category:** Get Help\
**Tags:** real-time-webtask-logs, extensions\
**Created:** [January 21, 2024, 3:29pm UTC](https://community.auth0.com/t/custom-database-mongodb-scripts-are-getting-timed-out-and-real-time-webtask-logs-wont-show-any-console-log-or-errors/125287 "2024-01-21T15:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruno.machado98](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bruno.machado98](https://community.auth0.com/u/bruno.machado98)\
**Post date:** [January 21, 2024, 3:29pm UTC](https://community.auth0.com/t/custom-database-mongodb-scripts-are-getting-timed-out-and-real-time-webtask-logs-wont-show-any-console-log-or-errors/125287/1 "2024-01-21T15:29:18Z")

</div>

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.

 ![img1](https://global.discourse-cdn.com/auth0/original/3X/e/5/e5102998f14dedec772283ee9785e666f5d19ba9.png)  
 ![img2](https://global.discourse-cdn.com/auth0/original/3X/e/c/ec2d6bbd353e63176f5776bcb709d522800afde9.png)  
 ![img3](https://global.discourse-cdn.com/auth0/original/3X/d/0/d05c57bff953d4f9ac3b4f495fa4752a9e81ffbd.png)

---

<div class="post-metadata">

**Author:** ![bruno.machado98](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bruno.machado98](https://community.auth0.com/u/bruno.machado98)\
**Post date:** [January 21, 2024, 3:39pm UTC](https://community.auth0.com/t/custom-database-mongodb-scripts-are-getting-timed-out-and-real-time-webtask-logs-wont-show-any-console-log-or-errors/125287/2 "2024-01-21T15:39:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 4, 2024, 3:39pm UTC](https://community.auth0.com/t/custom-database-mongodb-scripts-are-getting-timed-out-and-real-time-webtask-logs-wont-show-any-console-log-or-errors/125287/3 "2024-02-04T15:39:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
