I know this is an older post/has been closed for a while. But is there a limit to the variable size? I am trying to get a description from a JIRA issue and use it as a variable to create another one.
The syntax you mention, “{{Variable}}”, works for me in Body Raw JSON when using variables such as Date or Title from the JIRA issue, but when using the description I am getting the following error:
{
“errorMessages”: [
“Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@7fc7314c; line: 13, column: 39]”
]
}
I am able to get the request to work when I copy in the description value into the JSON Body (even its entire length )
Any suggestions?
Edit:
So I was able to answer my own question.
Using stringify() to set my variable seems to fix my problem:
pm.environment.set(“description”, JSON.stringify(description));