Error: connect ECONNREFUSED

Hi , I am trying to scrap data by lambda function and save the data to influx but while connecting to influx i am getting below error
2022-03-02T16:01:19.712Z 604e9c8e-e642-44f1-b801-53fdfb07c6a6 ERROR Error saving data to InfluxDB! Error: connect ECONNREFUSED
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)

Sorry, the information you provide is unfortunately quite incomplete and confusing.
Please provide context.
What do you mean by lambda function? AWS Lambda?
What exactly do you do and use? Programming language? Client library? Version? InfluxDB version?