levz0r / gmail-tester

A simple Node.js Gmail client which checks the inbox for message existence
MIT License
256 stars 68 forks source link

ENOTFOUND or EMFILE error while fetching mails #92

Open SimonasB88 opened 2 years ago

SimonasB88 commented 2 years ago

Hey, maybe someone had experience, after pasting the code, I get:

[gmail] Checking for message from '', to: XXX@XXX.XX, contains '' in subject...
Authorize this app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly&response_type=code&client_id=XXXXXXXXXXXXXXXXX&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
Enter the code from that page here: XXXXXXXXXXXXXXXXXXX
Error when getting recent emails: FetchError: request to https://gmail.googleapis.com/gmail/v1/users/me/messages/17a435042b0a2dd5?format=full failed, reason: getaddrinfo ENOTFOUND gmail.googleapis.com
[gmail] Error: FetchError: request to https://gmail.googleapis.com/gmail/v1/users/me/messages/17a435042b0a2dd5?format=full failed, reason: getaddrinfo ENOTFOUND gmail.googleapis.com

UPDATE: sometimes after long response I get the EMFILE error:

[gmail] Error: FetchError: request to https://gmail.googleapis.com/gmail/v1/users/me/messages/178b68f861ddf5b0?format=full failed, reason: connect EMFILE 142.250.74.170:443 - Local (undefined:undefined)