From 23a43c3c70d8f3ee7e4bfc339b8c2b56c82c3f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 25 Apr 2024 17:05:29 +0100 Subject: [PATCH] chore: Additional logging for Uniform attachArchieve endpoint [skip pizza] --- api.planx.uk/modules/send/uniform/uniform.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api.planx.uk/modules/send/uniform/uniform.ts b/api.planx.uk/modules/send/uniform/uniform.ts index ce8e6b2dda..64538574c4 100644 --- a/api.planx.uk/modules/send/uniform/uniform.ts +++ b/api.planx.uk/modules/send/uniform/uniform.ts @@ -309,6 +309,12 @@ async function attachArchive( const response = await axios.request(attachArchiveConfig); // successful upload returns 204 No Content without body const isSuccess = response.status === 204; + + // Temp additional logging to debug failures + console.log("*** Uniform attachArchive response ***"); + console.log(JSON.stringify(response, null, 2)); + console.log("******"); + return isSuccess; }