diff --git a/packages/core/src/evaluator/tests/pipelinesController.test.ts b/packages/core/src/evaluator/tests/pipelinesController.test.ts index be2b00e..2b5b14f 100644 --- a/packages/core/src/evaluator/tests/pipelinesController.test.ts +++ b/packages/core/src/evaluator/tests/pipelinesController.test.ts @@ -175,7 +175,7 @@ it('error when fetching the registration form', async () => { [ { "level": "error", - "message": "Operation to fetch form: 3623, failed with err: Request failed for | URL: https://test-api.ona.io/api/v1/forms/3623 | Status: 400", + "message": "Operation to fetch form: 3623, failed with err: Error Name: Error | Message: Request failed for | URL: https://test-api.ona.io/api/v1/forms/3623 | Status: 400", }, ], ]); diff --git a/packages/core/src/services/onaApi/services.ts b/packages/core/src/services/onaApi/services.ts index 870f00d..6f89809 100644 --- a/packages/core/src/services/onaApi/services.ts +++ b/packages/core/src/services/onaApi/services.ts @@ -57,7 +57,7 @@ export const customFetch = async (input: RequestInfo, init?: RequestInit, logger const response = await persistentFetch(input, requestOptionsWithRetry) if (response && !response.ok) { - throw throwHttpError(response) + throwHttpError(response) } return await response.json() }; @@ -102,10 +102,11 @@ export class OnaApiService { return Result.ok