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

socket hang up error on attachments

Open kemaghraby opened this issue 2 years ago • 2 comments

Hello, i'm using version 5.0.10 but i am getting socket hang up errors trying to perform attachments upload

This is an example of hat i am doing :

const file = Buffer.from('test', 'utf-8');

const response = zendeskClient.attachments.upload(file, {
  filename: 'test.txt',
  binary: true,
});

and i am always getting socket hang up when using attachments upload method Could you please advise on what can i do to overcome this issue?

kemaghraby avatar Feb 23 '24 15:02 kemaghraby

Same issue...

ollebergkvist avatar Mar 21 '24 21:03 ollebergkvist

is there a way to upload the file from stream with holding it in buffer?

ganz14 avatar Apr 11 '24 08:04 ganz14

Thank you for reporting this issue.

Is this still an ongoing problem for you? What is the size of the file(s) you are attempting to upload? Could you provide more detailed error responses or logs to help us diagnose the problem better?

This information will help us identify the cause and work towards a solution.

blakmatrix avatar Jul 02 '24 01:07 blakmatrix