From f55db489b60048bbd80a8741bdf98fe6e2b01f1f Mon Sep 17 00:00:00 2001 From: Sayan Das Date: Wed, 5 Feb 2025 16:01:50 +0530 Subject: [PATCH] Updated DV360 error type --- .../src/destinations/display-video-360/shared.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/destination-actions/src/destinations/display-video-360/shared.ts b/packages/destination-actions/src/destinations/display-video-360/shared.ts index 1d5952663b..546665bfc2 100644 --- a/packages/destination-actions/src/destinations/display-video-360/shared.ts +++ b/packages/destination-actions/src/destinations/display-video-360/shared.ts @@ -198,7 +198,11 @@ export const sendUpdateRequest = async ( await bulkUploaderResponseHandler(response, statsName, statsContext) } catch (error) { if ((error as HTTPError).response?.status === 500) { - throw new IntegrationError((error as HTTPError).message, 'INTERNAL_SERVER_ERROR', 500) + throw new IntegrationError( + (error as unknown as any).response?.message ?? (error as HTTPError).message, + 'INTERNAL_SERVER_ERROR', + 500 + ) } await bulkUploaderResponseHandler((error as HTTPError).response, statsName, statsContext)