Hello !
I choosed “Add header” and added to fields
Name: Content-Type
Value application/octet-stream
But my http requst node displays
ERROR: UNKNOWN ERROR - check the detailed error for more information
415 - {“type”:“Buffer”,“data”:[123,34,115,116,97,116,117,115,34,58,52,49,53,125]}
and ubder the Detail
HTTP-Code
rejected
Cause
Data below may contain sensitive information. Proceed with caution when sharing.
{
"status": "rejected",
"reason": {
"name": "StatusCodeError",
"statusCode": 415,
"message": "415 - {"type":"Buffer","data":[123,34,115,116,97,116,117,115,34,58,52,49,53,125]}",
"error": {
"type": "Buffer",
"data": [...] // 14 items
},
"options": {
"timeout": 3600000,
"headers": {...}, // 3 keys
"method": "POST",
"uri": "https://127.0.0.1:4000/api/v1/clients/ee-dev:COM:10264823:maais/tls-certificates",
"gzip": true,
"rejectUnauthorized": false,
"body": "{}",
"qs": {...}, // 0 keys
"encoding": null,
"simple": true,
"resolveWithFullResponse": false,
"transform2xxOnly": false
},
"response": {
"statusCode": 415,
"body": {
"type": "Buffer",
"data": [
123,
34,
115,
116,
97,
116,
117,
115,
34,
58,
52,
49,
53,
125
]
},
"headers": {
"x-road-ui-correlation-id": "6493251c86f58e44",
"accept": "application/octet-stream",
"x-content-type-options": "nosniff",
"x-xss-protection": "1; mode=block",
"cache-control": "no-cache, no-store, max-age=0, must-revalidate",
"pragma": "no-cache",
"expires": "0",
"strict-transport-security": "max-age=31536000 ; includeSubDomains",
"x-frame-options": "DENY",
"content-security-policy": "default-src 'none'",
"content-type": "application/json",
"transfer-encoding": "chunked",
"date": "Fri, 17 Sep 2021 12:14:18 GMT",
"connection": "close"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "127.0.0.1:4000",
"port": "4000",
"hostname": "127.0.0.1",
"hash": null,
"search": null,
"query": null,
"pathname": "/api/v1/clients/ee-dev:COM:10264823:maais/tls-certificates",
"path": "/api/v1/clients/ee-dev:COM:10264823:maais/tls-certificates",
"href": "https://127.0.0.1:4000/api/v1/clients/ee-dev:COM:10264823:maais/tls-certificates"
},
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "X-Road-ApiKey token=c6804432-37f4-43e3-b3f1-b7bb0b1ac3b0",
"accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7",
"accept-encoding": "gzip, deflate",
"content-length": 2
}
}
}
}
}
And ander the host applictaion where the post request is made there in in log message
Content type ‘application/json’ not supported
: