Can anyone shed light on what might be causing this issue?
{ MongoNetworkError: connection 5 to magicalcreature-shard-00-00-jfi8q.mongodb.net:27017 closed
Everything runs smoothly on my PC and all connections are working fine. However, when I deploy it on Heroku, an error pops up. The code on GitHub is identical except for the fact that I used process.env.MONGOD instead of the original connection string. Here's a glimpse of the connection string:
mongodb+srv://AlwaysRejected:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2353425050544c5147634e42444a40424f40514642575651460e49454a1b520d4e4c4d444c4740cd4d4657">[email protected]</a>/test?retryWrites=true