gmail-tester icon indicating copy to clipboard operation
gmail-tester copied to clipboard

Activation link does not work properly

Open NEMETOM opened this issue 2 years ago • 6 comments

Hi All, I've been facing an issue when I run the node script that generates the activation link that needs to be followed to activate the link. Everything works fine until I reach the last step were I'm redirected to localhost and get a message "The site cannot be reached"

Anybody has faced the same/similar issue? Could the issue be due to the localhost in the link?

node ./node_modules/gmail-tester/init.js ./cypress/plugins/credentials.json ./cypress/plugins/token.json "[email protected]"

Authorize this app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=xxxxxxxAUTHCODExxxxxxxx&redirect_uri=http%3A%2F%2Flocalhost

NEMETOM avatar Aug 11 '22 07:08 NEMETOM

Same thing here. After looking for solution, i see that the generated credentials.json file is a lil bit different now because we are missing a redirect_uris as you can see. I don't find a solution yet image

julienhublo avatar Aug 16 '22 14:08 julienhublo

Solution found : When you access to the localhost, your url is like : http://localhost/?code=4/0AdQt8qhH29BROVtV2-xxxxxxxxxxxxxxxxxxxxxc1vZdWGCjc9G_A&scope=https://www.googleapis.com/auth/gmail.readonly Here, get the code in the url (between "code=" and "&scope" and copy past it in the code required in your terminal. You gonna have the message "[gmail] Found!" and your token file is generated.

julienhublo avatar Aug 17 '22 12:08 julienhublo

I had the same problem!

Maybe you could add this solution to the docs/README?

Thanks!

tracy-ash avatar Aug 27 '22 16:08 tracy-ash

Upvote, pls, could you add end 2 end solution to the readme file? Much appreciated.

NEMETOM avatar Aug 27 '22 16:08 NEMETOM

For me it just spams message not found...

justno-steep avatar Oct 28 '22 09:10 justno-steep

Hello, Please get the latest version and re-run init.js.

levz0r avatar Dec 07 '22 23:12 levz0r