HI
When I make this request to an API (via Postman), I get 200 and a reply back. It is just a test system so “public access” is ok at the moment
curl --location --request PATCH ‘https://SERVER/public/exams/updateExamStatus/00af38b1-8b62-4e23-ae93-73368428ceda’
–header ‘Content-Type: application/json’
–data-raw ‘{
“status”: false
}’
When I try to send the request via make.com it fails.
Anything wrong with the header settings?
Anything wrong with the content? I also Tried
• “status”: true
• status: true
• { status: true}
but same result
Any hint why?
Thanks rob
[
{
“ca”: null,
“qs”: ,
“url”: “https://SERVER/public/exams/updateExamStatus/00af38b1-8b62-4e23-ae93-73368428ceda”,
“data”: “{ "status": true}”,
“gzip”: true,
“method”: “patch”,
“headers”: [
{
“name”: “Content-Type”,
“value”: “application/json”
}
],
“timeout”: null,
“useMtls”: false,
“authPass”: null,
“authUser”: null,
“bodyType”: “raw”,
“contentType”: “application/json”,
“serializeUrl”: true,
“shareCookies”: false,
“parseResponse”: false,
“followRedirect”: true,
“useQuerystring”: false,
“followAllRedirects”: false,
“rejectUnauthorized”: true
}
]
[
{
“statusCode”: 400,
“headers”: [
{
“name”: “server”,
“value”: “nginx”
},
{
“name”: “date”,
“value”: “Sun, 08 Jan 2023 09:40:33 GMT”
},
{
“name”: “content-type”,
“value”: “application/json; charset=utf-8”
},
{
“name”: “transfer-encoding”,
“value”: “chunked”
},
{
“name”: “connection”,
“value”: “close”
},
{
“name”: “x-request-id”,
“value”: “ff04d0fc-e137-4291-b218-5174c1a9d405”
}
],
“cookieHeaders”: ,
“data”: “{"name":"MoleculerError","message":"Unexpected token in JSON at position 1","code":400,"type":"entity.parse.failed"}”,
“fileSize”: 119
}
]
Answer from POSTMAN where request is succesfull