Hi all,
I have hosted a website on GoDaddy shared hosting developed in NodeJs.
The connection string is
mongoose.connect(‘mongodb+srv://USER:PWD@cluster0-fddt1.azure.mongodb.net/school?retryWrites=true&w=majority’,{
useNewUrlParser: true
//, useUnifiedTopology: true
})
.then(()=>console.log(‘Connection successful’))
.catch((err)=>console.error );
The Same project with the same connection string works fine with Localhost on local pc.
But fails to connect on the GODADDY.
There is no error in Godaddy terminal,
Even the ‘Connection successful’ message is not printed in Godaddy console.
Getting 404 Error in the webpage.