Hi, we are trying to send a ticket attachements to a third-party platform (Service Now) using Jira Automation.
This 3rd party application exposes an API that accepts any type of attachments In the body of the request it is expected that the content of the file must be sent (text, pdf, img, etc)
We noted that JSM when sending files, sends a different Content-Length and this causes, according to our analysis, an incorrect reception of the file by the third-party application
We have noticed that with a normal client, for example cURL, the Content-Length is correct and the file is received by the third-party application.
We also tried to overwrite the Content-Length header in the SendWebRequest Action, but the client does not make the request (generates a 500 error)
Could you help us , please ?
Greetings
Contact SN support why there is an issue on there API if a content length differs.
Seems the 3rd party API can't handle this.
Jira SendWebRequest Action send a wrong Content-Length when we send a binary file. We maked the same http request with Jira SendWebRequest to our mock web service for debug, and Content-Length was wrong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this community post, it might help you solve your issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.