StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Heroku application error: request timeout (503) #63

Open LALauw opened 4 years ago

LALauw commented 4 years ago

So after section 6 lecture: fixing heroku proxy issues I stumbled upon a problem when visiting the url for the /auth/google. It won't load and after ~30 sec it prompted this error from the heroku logs:

2020-02-26T18:45:15.118863+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/auth/google/callback?code=4/wwF92gsY8-IO9tMHD7KPQMvwEn15z5vikfpCpJxEDzzosONYHKqOMREg5nFrhRCExl_rrI8Hm_MuXZBu3qx6C_w&scope=email+profile+https://www.googleapis.com/auth/userinfo.profile+openid+https://www.googleapis.com/auth/userinfo.email&authuser=0&prompt=none" host=tranquil-ridge-16114.herokuapp.com request_id=76288616-519d-4e55-91ea-cccf707390a2 fwd="77.175.179.159" dyno=web.1 connect=0ms service=30001ms status=503 bytes=0 protocol=https 2020-02-26T18:45:16.734752+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tranquil-ridge-16114.herokuapp.com request_id=2fe5e6f0-a04a-4ade-8a72-86bfb1eb9393 fwd="77.175.179.159" dyno=web.1 connect=1ms service=2ms status=404 bytes=394 protocol=https

anyone knows how to fix this?

avivtsadik commented 4 years ago

i had the same issue!! have you manged to fix it?

LALauw commented 4 years ago

Nope, it's so weird can't seem to find a way to fix it.

avivtsadik commented 4 years ago

did you ask Stephen Grider for help? i sent him an email right now...

LALauw commented 4 years ago

yes but no response yet

avivtsadik commented 4 years ago

@dhuang612 @StephenGrider

avivtsadik commented 4 years ago

i fixed it! it is not the best option but it works for small tests!! you just need to put in mongodb atlas in the network accsess->click add ip address->allow accsess from anywhere hope it will help you...

LALauw commented 4 years ago

It works! Maybe in the future you need to add the ip-address of the heroku app server, but for development purposes this works great! Awesome that you found a fix!

avivtsadik commented 4 years ago

i could not find heroku ip because it is not constant, if you find please let me know!