Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Gettting "SDKError: Error on CSDS request: connect ETIMEDOUT" after idle time #140

Open
frank-fajardo-a142179 opened this issue Feb 6, 2021 · 0 comments

Comments

@frank-fajardo-a142179
Copy link

frank-fajardo-a142179 commented Feb 6, 2021

Hi,
I'm trying out the Node Agent SDK v1.4.7, and I managed to get the example agent-bot to work with LivePerson. I could see the bot echoing the messages in the chat. However, after being idle for some time, the agent-bot logged socket closed and then the error SDKError: Error on CSDS request: connect ETIMEDOUT. I'm not sure what CSDS request is. I tried to look for documentation but could not seem to find it.

How do I fix it? Am I missing something?
I'm creating the Agent with this OAuth1 configuration and not overriding the csdsDomain.

socket closed 1006
reconnecting
got an error SDKError: Error on CSDS request: connect ETIMEDOUT 43.251.41.7:443
    at Object.compileError (c:\repos\node-agent-sdk\lib\ExternalServices.js:70:16)
    at CSDSClient.requestHandler (c:\repos\node-agent-sdk\lib\CSDSClient.js:39:32)
    at Request._callback (c:\repos\node-agent-sdk\lib\CSDSClient.js:32:40)
    at self.callback (c:\repos\node-agent-sdk\node_modules\request\request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.EventEmitter.emit (domain.js:467:12)
    at Request.onRequestError (c:\repos\node-agent-sdk\node_modules\request\request.js:877:8)
    at ClientRequest.emit (events.js:315:20)
    at ClientRequest.EventEmitter.emit (domain.js:467:12)
    at TLSSocket.socketErrorListener (_http_client.js:469:9) {
  code: null,
  service: 'domainNames',
  error: Error: connect ETIMEDOUT 43.251.41.7:443
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
    errno: -4039,
    code: 'ETIMEDOUT',
    syscall: 'connect',
    address: '43.251.41.7',
    port: 443
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant