nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

Error: connect EACCES 127.0.0.1:80 #97

Closed yannDroy closed 5 years ago

yannDroy commented 6 years ago

I copied pasted example 4 to send an email and here is what I got:

Error: connect EACCES 127.0.0.1:80 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)

Is it possible to change the port? I guess that's where the problem comes from, port < 1024

EDIT: I'm trying to to send an email in an application hosted on Azure

dzhivushko commented 4 years ago

Hello @JasonBBelcher, is it possible to add the brief reason why this closed? is it some kind of misconfiguration or what?

dzhivushko commented 4 years ago

I found the misconfiguration. I didn't provided the protocol in 'host' property - only domain was specified. This is a cause of redirect to localhost.