StephenGrider / FullstackReactCode

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

Stuck at "Choose An Account" page for 1 minute, then Application Error #62

Open itisdoyoonkim opened 4 years ago

itisdoyoonkim commented 4 years ago

Hi

My app hangs at the "Choose an account" page after selecting an account, then after 30 seconds or 1 minute later, shows the Heroku Application error page.

Works fine while in development mode (local machine).

Heroku logs -t:

2020-02-04T04:38:34.257494+00:00 heroku[web.1]: State changed from starting to up 2020-02-04T04:38:35.184384+00:00 heroku[router]: at=info method=GET path="/auth/google" host=hidden-forest-41004.herokuapp.com request_id=f77e60f3-93e5-4bb4-b5b6-02226c2e23d1 fwd="184.65.174.56" dyno=web.1 connect=0ms service=33ms status=302 bytes=388 protocol=https 2020-02-04T04:39:03.983998+00:00 app[web.1]: Connected to mongoDB Atlas: SURVEY_DEV 2020-02-04T04:39:13.930544+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/auth/google/callback?code=4%2FwAEiLREL2ywU80PtHE1yb0eNJ4VbZBqv9utfTRGips4vaV7M6XUf8t-lxxXz8Nfdsn4xb3jZccE3hU2MhMbB4C8&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=0&prompt=none&session_state=7e78b8cfd392291121a6a6c536fc5d6999081e96..abeb" host=hidden-forest-41004.herokuapp.com request_id=39bfd93e-ba0e-4033-8bc4-f8f2e86b4838 fwd="184.65.174.56" dyno=web.1 connect=0ms service=30001ms status=503 bytes=0 protocol=https 2020-02-04T04:46:57.833359+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/auth/google/callback?code=4%2FwAG54RwQ8F6XxqszG6iDMz-W2pKUEeCQ8F1IxDPKGQtsM6Kac-gPV7oWcWGv-oRsQs6ew4B969owt2Vob8c_wAc&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=1&prompt=none&session_state=6f6604df5049242a052b05e3830c2e8efe4fd01e..2051" host=hidden-forest-41004.herokuapp.com request_id=ba6ba795-6399-4676-9ea2-c45730447589 fwd="184.65.174.56" dyno=web.1 connect=1ms service=30001ms status=503 bytes=0 protocol=https 2020-02-04T04:48:26.534301+00:00 heroku[router]: at=info method=GET path="/" host=hidden-forest-41004.herokuapp.com request_id=142883d2-3247-47f6-a882-fdcc08b2f7f0 fwd="184.65.174.56" dyno=web.1 connect=1ms service=23ms status=404 bytes=383 protocol=https 2020-02-04T04:48:35.608524+00:00 heroku[router]: at=info method=GET path="/auth/google" host=hidden-forest-41004.herokuapp.com request_id=cafba4d8-da7c-493b-93d4-b8fb03fa0800 fwd="184.65.174.56" dyno=web.1 connect=1ms service=3ms status=302 bytes=388 protocol=https 2020-02-04T04:49:22.177301+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/auth/google/callback?code=4%2FwAHfqIPBlGrPmZqzSYRHhz_HaIlgEDXbpzQ1jJYTd0Q-vn7mM0d81bAQlej9Wv7ATmb40RVdR7wEVZIzdWgeTt4&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&authuser=0&prompt=none&session_state=a3b683433f3e43b48d9affe54c9635ee1ace06f6..b67c" host=hidden-forest-41004.herokuapp.com request_id=a22a3d2d-c916-479a-a0e0-4eadc3153794 fwd="184.65.174.56" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https 2020-02-04T04:53:21.131964+00:00 heroku[router]: at=info method=GET path="/auth/google" host=hidden-forest-41004.herokuapp.com request_id=719ee63b-70fb-41ab-8d51-4d58245ab300 fwd="184.65.174.56" dyno=web.1 connect=1ms service=6ms status=302 bytes=388 protocol=https 2020-02-04T04:53:56.524855+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/auth/google/callback?code=4%2FwAFtGGpoSkSXAn467PzP6AoGUu2u11RJ1UZIae2EARLMkT9isWoEGPAZemzGFct10wOlaioTYYIu4gJlEheke9k&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=1&prompt=none&session_state=9774f354b2b69b671ff1f5734a82bda0c20af96e..9c7c" host=hidden-forest-41004.herokuapp.com request_id=4c757c8a-bedd-419f-ad90-ae65254e1bd2 fwd="184.65.174.56" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=https

sudhir9297 commented 4 years ago

Hopefully you have whitelisted your IP address in your project in Mlab or MongoDb.Atlas under NetworkAccess .....I just added 0.0.0.0/0 to work for all.