Skip to content

Commit

Permalink
chore: Additional logging for Uniform attachArchieve endpoint (#3060)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Apr 26, 2024
1 parent 0e4a587 commit 6ee9036
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 6ee9036

Please sign in to comment.