Getting H12 and 503 errors on heroku server

Viewed 56

Whenever I'm trying to make a POST request on my heroku app I get 503 error. It works completely fine locally.

at=error code=H12 desc="Request timeout" method=POST path="/login" host=classes-time.herokuapp.com status=503 bytes=0 protocol=https

Here is the full code in github repo: https://github.com/losbiw/Classes-time

I set my environment variable in heroku, so I've got no any clue what's the problem. I checked all the url's in my code for a couple of times, so am almost completely sure that it's not the reason why project isn't working.

1 Answers

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!

Related