diff --git a/source/logic/check_kinds/http_request.ts b/source/logic/check_kinds/http_request.ts index 9ec0b98..7a873d7 100644 --- a/source/logic/check_kinds/http_request.ts +++ b/source/logic/check_kinds/http_request.ts @@ -240,7 +240,13 @@ namespace _heimdall.check_kinds.http_request "info": { "request": parameters.request, "faults": [ - lib_plankton.translate.get("checks.http_request.request_failed", {"reason": error.toString()}), + lib_plankton.translate.get( + "checks.http_request.request_failed", + { + // "reason": error.toString(), + "reason": JSON.stringify(error), + } + ), ], }, }; @@ -313,7 +319,7 @@ namespace _heimdall.check_kinds.http_request "checks.http_request.header_value_mismatch", { "key": header_key, - "value_actual": http_response.headers[header_key], + "value_actual": http_response.headers[header_key.toLowerCase()], "value_expected": header_value, } ) diff --git a/source/logic/order.ts b/source/logic/order.ts index 2b17fa2..8b1e2e7 100644 --- a/source/logic/order.ts +++ b/source/logic/order.ts @@ -374,7 +374,7 @@ namespace _heimdall.order throw new Error("invalid check kind: " + node.kind); } else { - const node_ : type_check = Object.assign( + const node_ : type_check = (Object.assign( lib_plankton.object.patched( defaults, { @@ -384,7 +384,7 @@ namespace _heimdall.order }, ), node - ); + ) as type_check); let check : type_check = { "name": node_.name, "title": node_.title,