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

ECONNREFUSED error while trying to use imap #902

Open
ProgramJack opened this issue Jun 6, 2023 · 1 comment
Open

ECONNREFUSED error while trying to use imap #902

ProgramJack opened this issue Jun 6, 2023 · 1 comment

Comments

@ProgramJack
Copy link

Hello. I am currently using Visual Studio Code with 18.16.0 Node. I am trying to use imap, but it keeps saying the error is "ECONNREFUSED". What might be the cause of this? I am providing the right details. Or should be at least.

var Imap = require('imap'),
    inspect = require('util').inspect;

var imap = new Imap({
    user: '[email protected]',
    password: 'gmailpass',
    host: 'imap.gmail.com',
    port: 993,
    tls: true
});

Full error message:

errno: -4078,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'xxxxx',
  port: 993,
  source: 'socket'
@mscdex
Copy link
Owner

mscdex commented Jun 7, 2023

Check any firewalls or security software you have in place. Something is blocking your traffic.

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

2 participants