I’m working with Freshdesk-Jira custom integration. In Freshdesk if any attachments exist then in response we will get as S3 links. These links are expiring after a few hours. So I decided to develop a middleware where I can download the file using that S3 link and upload it in Jira. But while doing this I’m getting timeout error in the logs. So I need to know is there any alternative to upload attachments from Freshdesk to Jira.
Below is the response I’m getting while doing this
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
I’m trying to upload attachments using my middleware. When I’m uploading ticket attachments I’m receiving attachment_url and I’m able to upload it successfully to my 3rd party application for the above URL.
Similarly, on conversation create if any attachments exist then I’m receiving URL differently and
while uploading this URL with the same middleware logic I’m receiving an error as Server returned HTTP response code: 400 for URL and if I try to open the link in the browser it’s giving me an invalid request. Can you take this into consideration?
Yes, I’m using the attachment Url that when we hit get ticket detail API.
This issue got resolved.
It’s taking time to upload in my 3rd party application using middleware meanwhile request API renders data so I’m receiving this error however I resolved this too .
Sure below is the response I’m getting
`<Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message<RequestId>61F6BEB2DA1C358B</RequestId><HostId>qVw3NknFZNKLvwV/1GnfI92GyiyGMMkCGDCwJPdpsIxCWkNEGiuNPX+BTro/PzDvLGJHyU73XA8</HostId></Error>`
I’m using serverless events(i.e., on-conversation create event). My requirement here is to create a comment in 3rd party application on Freshdesk conversation create. If attachments exist I need to post attachments too.