I am running a Nodejs lambda which posts notification to our Slack channel. However, when initialising the Slack client it is sort of timing out with this message WARN [WARN] web-api:WebClient:0 http request failed connect ETIMEDOUT. I checked one of the python lambdas and found the following way of initialising the Slack WebClient.
import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
client = WebClient(token=token, ssl=ctx)
as opposed to node's way of
client = new WebClient(token)
I am surmising that because of this SSL verification Slack client is not getting initialised that's why they bypassed it in python.
I was hoping if there's any such workaround for Node also.