-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Created a new project on Google Console, Get the Credentials but the init process never ends #127
Comments
I still get the issue above |
@hieuTranEnouvo For me, it works all good. Have you placed credentials.json correctly in the path you are pointing? I tried gmail-tester v1.3.8 , yes it does not ask to enter code now but this is more better. You don't need to enter code now, it automatically gets authenticated! |
@azadnsu I am facing the same issue as above. In my case it is giving me the following error: |
@azadnsu The issue still display. It doesn't enter code automatically |
@hieuTranEnouvo See your account is actually set up successfully, otherwise, it won't go for email search. Please check what its Request per minute in Quotas in your project Admin in Google cloud something like here: https://console.cloud.google.com/iam-admin/quotas |
@azadnsu Thank you for replying |
@hieuTranEnouvo Go to the next pages, Request per minute is there. |
@hieuTranEnouvo You can increase quotas from there Or follow this solution posted in another thread: #78 |
@azadnsu here what I found |
@hieuTranEnouvo I have no idea as well, your account got connected. Its Gmail API blocking requests which you need to figure out! |
OK thank @azadnsu |
@hieuTranEnouvo Could you please try with a fresh Gmail account from the scratch. Just to give a try! |
@azadnsu let me check now |
|
View or change usage limits, increase quota 1/If you don't already have a billing account for your project, then create one. ==> I don't know how to "To view usage statistics, select Usage" |
There should be no quota problem in a normal gmail account. Looks like somehow your account is connected to business account! |
@azadnsu I have 3 accounts which are connected to business account? |
If your mailbox contains 1000s of emails, I guess you just need to limit the result set by using some filtering options like |
Did anyone solve or update this for the OOB deprecation?
Our cypress tests just started failing, and I suspect it is due the the token expiring and we can't generate a new one due to this being deprecated by google https://developers.google.com/identity/protocols/oauth2/resources/oob-migration |
Solution @ #126 |
I noticed that google apis deprecated the Out-Of-Band (OOB) which means that credentials created now does not have the
urn:ietf:wg:oauth:2.0:oob
it creates with"redirect_uris":["http://localhost/"]}}
Then I was trying to run the node
node_modules/gmail-tester/init.js cypress/events/gmail/credentials.json cypress/events/gmail/gmail_token.json <[email protected]>
Note: the actual email has been omitted
Then it directly opened the page to grant the email and redirected to the : localhost asking to back to the terminal
I back to the terminal but what I had was the prompt below forever:
[gmail] Checking for message from '', to: [email protected], contains '' in subject...
Note: I never asks me to put a code in the terminal
I think it has something to do with the deprecation of Out-Of-Band (OOB)
https://developers.google.com/identity/protocols/oauth2/resources/oob-migration
I tried to use the latest version of gmail-tester and it does not work.
Indeed it creates the file gmail_token.json (in my case) but if I delete it, when running the tests it opens a new instance of the browser during the cypress test execution, and asks to grant the permission for the email again, hence a manual intervention needed.
Any idea if it's a known issue if it's a workaround?
I also noticed people complaining it here without any answers:
#73
The text was updated successfully, but these errors were encountered: