Sendgrid error code 'ESOCKET' - how to solve for econnrefused error - sendgrid

I'm trying to figure out how to configure sendgrid to send emails from my app (in development).
I can't find my error code in this list of error codes that sendgrid publishes on its error code page.
The terminal shows me this error messag
Error sending mail: Error: connect ECONNREFUSED 127.0.0.1:1025
#b/api:dev: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
#b/api:dev: at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
#b/api:dev: errno: -61,
#b/api:dev: code: 'ESOCKET',
#b/api:dev: syscall: 'connect',
#b/api:dev: address: '127.0.0.1',
#b/api:dev: port: 1025,
#b/api:dev: command: 'CONN'
I can't make sense of any of this. Does anyone know what esocket means?

Related

Failed to add global permission to user Rancher

I tried to add user global permissions to a cluster, but fail to add, received the following error message:
Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp 10.X.X.X: connect: connection refused
I found nothing about this.
Thanks.

Mongorestore problem Authentication failed

mongorestore -h ds121312.mlab.com:21312 -d heroku_jzxndzbk -u heroku_jzxndzbk -p xxxxxxxxxxxxxxx dump/Loc8r
Error:
2019-12-20T11:36:55.931-0500 error connecting to host: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism "SCRA
M-SHA-1": (AuthenticationFailed) Authentication failed.
I am following along "Getting MEAN" text by Holmes/Harber - pg 152.
Any suggestions? Thank you
You must also specify which database you are using for authentication, e.g., --authenticationDatabase admin.
Reference: https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-authenticationdatabase

After Magento server move I get php_network_getaddresses: getaddrinfo failed: Name or service not known error on homepage

After Magento server move I get:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
I had to move my website from magemojo server to jetRails server and I am getting the above error message when trying to access the homepage. Other pages works fine.

Swiftmailer email issue

I am sending email in Symfony2 using Swift Mailer.
//app/config.yml
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
port: "%mailer_port%"
encryption: "%mailer_encryption%"
spool: { type: memory }
And app/parameters.yml
mailer_transport: smtp
mailer_host: smtp.office365.com
mailer_user: notify#location.com
mailer_password: test
mailer_port: 587
mailer_encryption: tls
But I am getting following error again- and again.
app.ERROR: Exception occurred while flushing email queue: Expected response code 250 but got code "", with message "" [] []
How can I resolve this?
"SMTP error 554 is one of the more vague error codes, but is typically caused by the receiving server seeing something in the From or To headers that it doesn't like. This can be caused by a spam trap identifying your machine as a relay, or as a machine not trusted to send mail from your domain." - STMP error 554

Tor + Mongodb +localhost27017

When I run my crawler, I get the error message:
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: Socket error: 0x01: General SOCKS server failure
I am not sure how to resolve this.