Skip to content

feat: integrate openapi-fetch #367

feat: integrate openapi-fetch

feat: integrate openapi-fetch #367

Triggered via pull request March 17, 2025 12:08
Status Failure
Total duration 1m 2s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

32 errors
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should render users list successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should handle fetch errors". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should assign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should unassign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
tests/EnvTemplateApply.test.tsx > Apply Command > Should display the values: tests/EnvTemplateApply.test.tsx#L69
AssertionError: expected '' to include '❯ fga-tradeoffs\n' ❯ tests/EnvTemplateApply.test.tsx:69:30
tests/EnvTemplateList.test.tsx > Apply Command > Should display the values: tests/EnvTemplateList.test.tsx#L69
AssertionError: expected '' to include 'Templates List' ❯ tests/EnvTemplateList.test.tsx:69:30
tests/api-users.test.tsx > API Users List Command > should render users list successfully: tests/api-users.test.tsx#L103
AssertionError: expected '' to match /Showing 1 items/ - Expected: /Showing 1 items/ + Received: "" ❯ tests/api-users.test.tsx:103:23
tests/api-users.test.tsx > API Users List Command > should handle fetch errors: tests/api-users.test.tsx#L143
AssertionError: expected '' to match /Error/ - Expected: /Error/ + Received: "" ❯ tests/api-users.test.tsx:143:35
tests/api-users.test.tsx > API Users Commands > Assign Role Command > should assign role successfully: tests/api-users.test.tsx#L193
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:193:24
tests/api-users.test.tsx > API Users Commands > Unassign Role Command > should unassign role successfully: tests/api-users.test.tsx#L237
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:237:24
build (18.x)
The job was canceled because "_20_x" failed.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should render users list successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should handle fetch errors". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should assign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should unassign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
tests/EnvTemplateApply.test.tsx > Apply Command > Should display the values: tests/EnvTemplateApply.test.tsx#L69
AssertionError: expected '' to include '❯ fga-tradeoffs\n' ❯ tests/EnvTemplateApply.test.tsx:69:30
tests/EnvTemplateList.test.tsx > Apply Command > Should display the values: tests/EnvTemplateList.test.tsx#L69
AssertionError: expected '' to include 'Templates List' ❯ tests/EnvTemplateList.test.tsx:69:30
tests/api-users.test.tsx > API Users List Command > should render users list successfully: tests/api-users.test.tsx#L103
AssertionError: expected '' to match /Showing 1 items/ - Expected: /Showing 1 items/ + Received: "" ❯ tests/api-users.test.tsx:103:23
tests/api-users.test.tsx > API Users List Command > should handle fetch errors: tests/api-users.test.tsx#L143
AssertionError: expected '' to match /Error/ - Expected: /Error/ + Received: "" ❯ tests/api-users.test.tsx:143:35
tests/api-users.test.tsx > API Users Commands > Assign Role Command > should assign role successfully: tests/api-users.test.tsx#L193
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:193:24
tests/api-users.test.tsx > API Users Commands > Unassign Role Command > should unassign role successfully: tests/api-users.test.tsx#L237
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:237:24
build (22.x)
The job was canceled because "_20_x" failed.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should render users list successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should handle fetch errors". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should assign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: source/hooks/useClient.ts#L431
TypeError: Cannot read properties of undefined (reading 'get') ❯ coreFetch node_modules/openapi-fetch/dist/index.js:206:53 ❯ Object.GET source/hooks/useClient.ts:431:38 ❯ source/hooks/useUnauthenticatedApi.ts:22:11 ❯ source/hooks/useUnauthenticatedApi.ts:78:40 ❯ source/components/AuthProvider.tsx:161:9 This error originated in "tests/api-users.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should unassign role successfully". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
tests/EnvTemplateApply.test.tsx > Apply Command > Should display the values: tests/EnvTemplateApply.test.tsx#L69
AssertionError: expected '' to include '❯ fga-tradeoffs\n' ❯ tests/EnvTemplateApply.test.tsx:69:30
tests/EnvTemplateList.test.tsx > Apply Command > Should display the values: tests/EnvTemplateList.test.tsx#L69
AssertionError: expected '' to include 'Templates List' ❯ tests/EnvTemplateList.test.tsx:69:30
tests/api-users.test.tsx > API Users List Command > should render users list successfully: tests/api-users.test.tsx#L103
AssertionError: expected '' to match /Showing 1 items/ - Expected: /Showing 1 items/ + Received: "" ❯ tests/api-users.test.tsx:103:23
tests/api-users.test.tsx > API Users List Command > should handle fetch errors: tests/api-users.test.tsx#L143
AssertionError: expected '' to match /Error/ - Expected: /Error/ + Received: "" ❯ tests/api-users.test.tsx:143:35
tests/api-users.test.tsx > API Users Commands > Assign Role Command > should assign role successfully: tests/api-users.test.tsx#L193
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:193:24
tests/api-users.test.tsx > API Users Commands > Unassign Role Command > should unassign role successfully: tests/api-users.test.tsx#L237
AssertionError: expected '' to match /completed successfully/ - Expected: /completed successfully/ + Received: "" ❯ tests/api-users.test.tsx:237:24