Code Monkey home page Code Monkey logo

Comments (21)

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

I still get the issue above
error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadata": {
"method": "caribou.api.proto.MailboxService.GetMessage",
"service": "gmail.googleapis.com"
}
}
]
}

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@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!
Screenshot 2023-03-08 at 19 11 09

from gmail-tester.

NighatAtta avatar NighatAtta commented on September 23, 2024

@azadnsu I am facing the same issue as above. In my case it is giving me the following error:
FetchError: request to https://gmail.googleapis.com/gmail/v1/users/me/messages/181dc6b25056f876?format=full failed, reason: connect ETIMEDOUT 216.58.209.138:443
Do you have any idea about this? Any help would be appreciated.
2023-03-10 (4)

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

@azadnsu The issue still display. It doesn't enter code automatically
Screenshot 2023-03-10 at 14 42 51

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@hieuTranEnouvo See your account is actually set up successfully, otherwise, it won't go for email search.
Now, regarding the error, your Gmail account might have a quota per minute set to 0. Please try to increase it.
Here are some resources about how to do it:
https://stackoverflow.com/questions/66785834/quota-exceeded-for-quota-metric-requests-and-limit-requests-per-minute-of-se

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

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

@azadnsu Thank you for replying
I can't find a quota per minute set to increase it.

Screenshot 2023-03-10 at 15 17 12

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@hieuTranEnouvo Go to the next pages, Request per minute is there.

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@hieuTranEnouvo You can increase quotas from there Or follow this solution posted in another thread: #78

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

@azadnsu here what I found
Screenshot 2023-03-10 at 15 44 14
But I still don't know what the issue is

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@hieuTranEnouvo I have no idea as well, your account got connected. Its Gmail API blocking requests which you need to figure out!

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

OK thank @azadnsu

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

@hieuTranEnouvo Could you please try with a fresh Gmail account from the scratch. Just to give a try!

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

@azadnsu let me check now

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

Screenshot 2023-03-13 at 15 10 36
@azadnsu I used another account but still get the issue

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

I am sure you need to do this: https://developers.google.com/gmail/api/guides/handle-errors#:~:text=An%20error%20403%20occurs%20when,The%20daily%20limit%20was%20exceeded. @hieuTranEnouvo

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

View or change usage limits, increase quota
To view or change usage limits for your project, or to request an increase to your quota, do the following:

1/If you don't already have a billing account for your project, then create one.
2/Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
3/To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.

==> I don't know how to "To view usage statistics, select Usage"
pls help me that @azadnsu

from gmail-tester.

azadnsu avatar azadnsu commented on September 23, 2024

There should be no quota problem in a normal gmail account. Looks like somehow your account is connected to business account!

from gmail-tester.

hieuTranEnouvo avatar hieuTranEnouvo commented on September 23, 2024

@azadnsu I have 3 accounts which are connected to business account?
It is same the error for 3 accs

from gmail-tester.

dev101 avatar dev101 commented on September 23, 2024

If your mailbox contains 1000s of emails, I guess you just need to limit the result set by using some filtering options like after.

from gmail-tester.

owenbendavies avatar owenbendavies commented on September 23, 2024

Did anyone solve or update this for the OOB deprecation?

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

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

from gmail-tester.

neoanantha avatar neoanantha commented on September 23, 2024

Solution @ #126

from gmail-tester.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.