StephenGrider / FullstackReactCode

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

FullstackReactCode udemy course #52

Open suhassobale opened 5 years ago

suhassobale commented 5 years ago

I stephen i dropped message to you on udemy . pls look into it.

gyolland commented 5 years ago

Hi Stephen, Please look for a message on Udemy with the subject: prod: /auth/google results in "Internal Server Error", going to herokuapp results in Cannot GET / Thanks, George

dhuang612 commented 5 years ago

Hi,

So I was able to resolve my issue, please confirm the following: From the command line of heroku logs you are getting undefined 2019-05-27T19:54:24.328354+00:00 app[web.1]: Error 2019-05-27T19:54:24.328358+00:00 app[web.1]: at Strategy.OAuth2Strategy.parseErrorResponse

Also make sure that the local copy of your app is working. Then log into your heroku portal and confirm that your config variables are set correctly. For me I had GOOGLE_CLIENT_SECRET set as GOOGLE.CLIENT_SECRET

I readded the var and was able to get to current user.