Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.
This repository was 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

@frank-fajardo-a142179

Description

@frank-fajardo-a142179

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions