Hi guys,
on espo 9.1.8 i've met problem that httpresponsebody like is not recognised correctly:
:
response json is like:
{
"errorCode": "409 CONFLICT",
"message": "Request contains invalid fields",
"details": {
"variableId": "Problem description"
},
"timestamp": "2025-12-01T09:08:11.241180951"
}
$_lastHttpResponseBody - gives null
$__caughtErrorCode - gives some espo like data with link and error code
$ans=workflow\lastHttpResponseBody();
$code=workflow\lastHttpResponseCode();
both gives null also
i've no idea whats can be wrong, the only thing that came to my mind is "errorCode": "409 CONFLICT", should be code (ointeger) onyl: "errorCode": "409",
on espo 9.1.8 i've met problem that httpresponsebody like is not recognised correctly:
:
response json is like:
{
"errorCode": "409 CONFLICT",
"message": "Request contains invalid fields",
"details": {
"variableId": "Problem description"
},
"timestamp": "2025-12-01T09:08:11.241180951"
}
$_lastHttpResponseBody - gives null
$__caughtErrorCode - gives some espo like data with link and error code
$ans=workflow\lastHttpResponseBody();
$code=workflow\lastHttpResponseCode();
both gives null also
i've no idea whats can be wrong, the only thing that came to my mind is "errorCode": "409 CONFLICT", should be code (ointeger) onyl: "errorCode": "409",

Comment