node-zendesk icon indicating copy to clipboard operation
node-zendesk copied to clipboard

Random socket hang up errors

Open Rolos opened this issue 3 years ago • 0 comments

Hello, i'm using version 1.3.0 and node 12.16.1 but i am getting random socket hang up errors trying to perform several different api requests.

This is how i am initializing the library:

const options = {
  username: "username",
  token: "token",
  remoteUri: "remote url",
  encoding: 'utf8',
  disableGlobalState: true,
  debug: false,
};
const client = zendesk.createClient(options);

And this is an example of a request that is randomly returning socket hang up

client.tickets.update(ticketId, { ticket }, (err, status, zendeskTicket) => {});

Could you please advise on what are my options here to prevent this from happening?

Rolos avatar Jun 22 '21 15:06 Rolos