node-zendesk
node-zendesk copied to clipboard
Random socket hang up errors
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?