Im trying to connect to my database from Render, when i do it locally it works but when i deploy my app on render it dosent i get the same error i tried lowering the version and autoSelectFamily false but nothing works

const client = new MongoClient(uri, {
serverApi: {

    autoSelectFamily: false
},

});

this is my client idk if here is the problem or what, im using atlas and put the 0.0.0.0 to allow all conections but nothing