aws-samples/amazon-guardduty-to-slack

Connection refused errors on lambda invocation

Closed this issue · 1 comments

Deployed this as a cloudformation template with the necessary variables. However, when firing test GuardDuty alerts I get the following:

2021-12-08T22:57:06.856Z	3eb11653-unique-identifier-string-123	ERROR	Uncaught Exception 	{
    "errorType": "Error",
    "errorMessage": "connect ECONNREFUSED 127.0.0.1:443",
    "code": "ECONNREFUSED",
    "errno": "ECONNREFUSED",
    "syscall": "connect",
    "address": "127.0.0.1",
    "port": 443,
    "stack": [
        "Error: connect ECONNREFUSED 127.0.0.1:443",
        "    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)"
    ]
}

Typo'ed the webhook URL, working now!