Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation link does not work properly #103

Open
NEMETOM opened this issue Aug 11, 2022 · 6 comments
Open

Activation link does not work properly #103

NEMETOM opened this issue Aug 11, 2022 · 6 comments

Comments

@NEMETOM
Copy link

NEMETOM commented Aug 11, 2022

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

@julienhublo
Copy link

julienhublo commented Aug 16, 2022

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
Copy link

julienhublo commented Aug 17, 2022

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.

@tracy-ash
Copy link

I had the same problem!

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

Thanks!

@NEMETOM
Copy link
Author

NEMETOM commented Aug 27, 2022

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

@levz0r
Copy link
Owner

levz0r commented Dec 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@levz0r @NEMETOM @tracy-ash @julienhublo and others