Open sosnovsky opened 2 months ago
Similar error happened when I opened Encrypted inbox
extension page:
catch.js:45 Too Many Requests: 429 when GET-ing https://www.googleapis.com/gmail/v1/users/me/threads/18eb8724b636ddae (no body): -> Resource has been exhausted (e.g. check quota).
provided ajax call stack:
at Google.gmailCall (chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/js/common/api/email-provider/gmail/google.js:40:67)
at async Gmail.threadGet (chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/js/common/api/email-provider/gmail/gmail.js:29:24)
at async InboxListThreadsModule.renderInboxItem (chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/chrome/settings/inbox/inbox-modules/inbox-list-threads-module.js:55:36)
at async Promise.all (index 42)
at async InboxListThreadsModule.render (chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/chrome/settings/inbox/inbox-modules/inbox-list-threads-module.js:20:25)
at async InboxView.render (chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/chrome/settings/inbox/inbox.js:50:29)
at async chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/js/common/view.js:28:25
url: chrome-extension://pjohdcpiapjhagmakkjpgjmodmgfmkkd/chrome/settings/inbox/inbox.htm?acctEmail=[SCRUBBED]&page=
at <async> ajax (/extension/js/common/api/shared/api.ts:98:4)
at <async> performAjaxRequest (/extension/js/common/api/authentication/google/google-oauth.ts:128:31)
at <async> gmailCall (/extension/js/common/api/email-provider/gmail/google.ts:19:28)
at <async> threadGet (/extension/js/common/api/email-provider/gmail/gmail.ts:35:21)
In the latest release these errors are still happen quite often:
this one when opening encrypted inbox
message: Too Many Requests: 429 when GET-ing https://www.googleapis.com/gmail/v1/users/me/threads/THREAD_ID
url: chrome-extension://EXTENSION_ID/chrome/settings/inbox/inbox.htm
provided ajax call stack:
at Google.gmailCall (chrome-extension://EXTENSION_ID/js/common/api/email-provider/gmail/google.js:40:67)
at async Gmail.threadGet (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:30:24)
at async InboxListThreadsModule.renderInboxItem (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/settings/inbox/inbox-modules/inbox-list-threads-module.js:55:36)
at async Promise.all (index 25)
at async promiseAllWithLimit (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/core/common.js:479:38)
at async InboxListThreadsModule.render (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/settings/inbox/inbox-modules/inbox-list-threads-module.js:20:25)
at async InboxView.render (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/settings/inbox/inbox.js:50:29)
at async chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/view.js:28:25
and this one when entering recipient in compose modal
message: Too Many Requests: 429 when GET-ing https://www.googleapis.com/gmail/v1/users/me/messages/MESSAGE_ID
url: chrome-extension://EXTENSION_ID/chrome/elements/compose.htm
provided ajax call stack:
at Google.gmailCall (chrome-extension://EXTENSION_ID/js/common/api/email-provider/gmail/google.js:40:67)
at async Gmail.msgGet (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:162:24)
at async Promise.all (index 26)
at async promiseAllWithLimit (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/core/common.js:479:38)
at async Gmail.msgsGet (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:170:24)
at async Gmail.extractHeadersFromMsgs (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:530:35)
at async Gmail.fetchMsgsHeadersBasedOnQuery (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:397:24)
at async Gmail.apiGmailLoopThroughEmailsToCompileContacts (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:498:37)
Probably we should catch these 429 errors and add some timeout before the next requests.
Sometimes when composing message, after I start entering recipient email appears error popup
Error searching contacts
and there are such errors in console:There are also several failed requests trying to fetch messages metadata (https://www.googleapis.com/gmail/v1/users/me/messages/MESSAGE_ID?format=metadata
Currently noticed such issue only in https://github.com/FlowCrypt/flowcrypt-browser/pull/5651, but maybe it exists in
master
too, can't find exact steps to reproduce it, occurs randomly when composing new message.