Getting this error "{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]} "
curl: (6) Could not resolve host: at
curl: (3) nested brace in URL position 397:
The Json is valid and im not sure why this bash curl coming out as error.
#!/usr/bin/bash
A="Storage warning at server"
B="2022-03-30"
C="Usage over 30% /home/rep (50%) on server as on Fri 25 Mar 2022 01:45:37 PM UTC"
--data '{
"fields":
{
"summary": "'$A'",
"duedate": "'$B'",
"reporter": {
"id": "12344534534534"
},
"issuetype": {
"id": "3"
},
"project": {
"key": "DEV",
"id": "12201",
"name": "DevOps"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "'$C'",
"type": "text"
},
{
"type": "inlineCard",
"attrs": {
"url": "'$CI_PROJECT_URL'"
}
}
]
}
]
}
}
}'