Skip to content

Migrate SDK from axios to KY #158

Migrate SDK from axios to KY

Migrate SDK from axios to KY #158

Triggered via pull request August 23, 2024 13:15
@sidharthv96sidharthv96
synchronize #27
sidv/useKY
Status Failure
Total duration 51s
Artifacts

build.yml

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

Annotations

19 errors and 20 warnings
src/index.e2e.test.ts > createDocument > should create document in project: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:104:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > setDocument > should set document: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:119:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > setDocument > should throw an error on invalid data: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:142:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > deleteDocument > should delete document: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:157:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > getDocument > should get diagram: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:171:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
test (18.18.x, sdk, macos-latest)
Process completed with exit code 1.
test (18.18.x, sdk, ubuntu-latest)
The job was canceled because "_18_18_x_sdk_macos-latest" failed.
src/index.e2e.test.ts > createDocument > should create document in project: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:104:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > setDocument > should set document: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:119:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > setDocument > should throw an error on invalid data: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:142:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > deleteDocument > should delete document: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:157:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
src/index.e2e.test.ts > getDocument > should get diagram: packages/sdk/src/index.ts#L199
TypeError: fetch failed ❯ function_ ../../node_modules/.pnpm/[email protected]/node_modules/ky/source/core/Ky.ts:38:19 ❯ MermaidChart.createDocument src/index.ts:199:25 ❯ src/index.e2e.test.ts:171:25 Caused by: RequestContentLengthMismatchError: Request body length does not match content-length header ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' }
test (18.18.x, sdk, ubuntu-latest)
Process completed with exit code 1.
test (18.18.x, cli, macos-latest)
The job was canceled because "_18_18_x_sdk_macos-latest" failed.
test (18.18.x, cli, macos-latest)
The operation was canceled.
test (18.18.x, cli, windows-latest)
The job was canceled because "_18_18_x_sdk_macos-latest" failed.
test (18.18.x, cli, windows-latest)
The operation was canceled.
test (18.18.x, sdk, windows-latest)
The job was canceled because "_18_18_x_sdk_macos-latest" failed.
test (18.18.x, sdk, windows-latest)
The operation was canceled.
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L94
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L134
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L146
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L153
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L156
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L250
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L253
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L257
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/commander.ts#L322
Unexpected console statement
test (18.18.x, cli, ubuntu-latest): packages/cli/src/methods.ts#L68
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L94
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L134
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L146
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L153
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L156
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L250
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L253
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L257
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/commander.ts#L322
Unexpected console statement
test (18.18.x, cli, macos-latest): packages/cli/src/methods.ts#L68
Unexpected console statement