Skip to content

Commit

Permalink
feat(ihe): change bad response to status code
Browse files Browse the repository at this point in the history
Refs: #1667
Signed-off-by: Jonah Kaye <[email protected]>
  • Loading branch information
jonahkaye committed Jun 20, 2024
1 parent 0b9489f commit 9795f94
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function createSignSendProcessXCPDRequest({
try {
// TODO not sure if we should retry on timeout
await executeWithNetworkRetries(async () => axios.post(pdResponseUrl, result), {
httpCodesToRetry: ["ERR_BAD_RESPONSE"],
httpStatusCodesToRetry: [502, 504],
});
} catch (error) {
const msg = "Failed to send PD response to internal CQ endpoint";
Expand Down Expand Up @@ -170,7 +170,7 @@ export async function createSignSendProcessDqRequests({
try {
// TODO not sure if we should retry on timeout
await executeWithNetworkRetries(async () => axios.post(dqResponseUrl, result), {
httpCodesToRetry: ["ERR_BAD_RESPONSE"],
httpStatusCodesToRetry: [502, 504],
});
} catch (error) {
const msg = "Failed to send DQ response to internal CQ endpoint";
Expand Down Expand Up @@ -222,7 +222,7 @@ export async function createSignSendProcessDrRequests({
try {
// TODO not sure if we should retry on timeout
await executeWithNetworkRetries(async () => axios.post(drResponseUrl, result), {
httpCodesToRetry: ["ERR_BAD_RESPONSE"],
httpStatusCodesToRetry: [502, 504],
});
} catch (error) {
const msg = "Failed to send DR response to internal CQ endpoint";
Expand Down

0 comments on commit 9795f94

Please sign in to comment.