From aea76bb872520187af88c17f4f6a5ef9e5fd8303 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Mon, 30 Sep 2024 14:55:18 +0545 Subject: [PATCH] fix: status code for retrying --- .../DescriptionSection/PopoverBox/ImageBox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/index.tsx b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/index.tsx index 9a97bfd3..9d7f7631 100644 --- a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/PopoverBox/ImageBox/index.tsx @@ -55,7 +55,7 @@ const ImageBoxPopOver = () => { mutationFn: () => postProcessImagery(projectId, taskId), onSuccess: () => toast.success('Image processing started'), retry: (failureCount: any, error: any) => - error.status === 304 && failureCount < 5, + error.status === 307 && failureCount < 5, }); // function that gets the signed urls for the images and again puts them in chunks of 4