Skip to content

Commit

Permalink
chore: Additional logging for Uniform attachArchieve endpoint [skip p…
Browse files Browse the repository at this point in the history
…izza]
  • Loading branch information
DafyddLlyr committed Apr 25, 2024
1 parent 040d257 commit 23a43c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api.planx.uk/modules/send/uniform/uniform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 23a43c3

Please sign in to comment.