SandboxTimeoutError in custom mongo database

Hi, I had the same issue, you need to change your runtime from 18 to 16 and in your script change

 const MongoClient = require('mongodb@5.7.0').MongoClient;

to

 const MongoClient = require('mongodb@4.1.0').MongoClient;
1 Like