Getting H12 and 503 errors on heroku server
Okay, so actually spent like 2 weeks trying to find an answer and turned out that the problem wasn't with my code, but with my mongodb cluster. Actually I just needed to allow using ip different from mine(0.0.0.0/0). Now it works fine!