Skip to content

fix: failure of the request cause : translate fail ! Unexpected token #76

fix: failure of the request cause : translate fail ! Unexpected token

fix: failure of the request cause : translate fail ! Unexpected token #76

Triggered via push December 7, 2024 07:37
Status Failure
Total duration 1m 9s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 3 warnings
test/translate.test.ts > translator > baidu translate: src/engines/baidu.ts#L55
Error: Translate fail ! error_code:54001, error_msg: Invalid Sign ❯ Object.translate src/engines/baidu.ts:55:15 ❯ test/translate.test.ts:67:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { region: 'baidu' }
test/translate.test.ts > translator > deepl translate: src/utils/utils.ts#L23
Error: Translate fail ! 400: Bad Request Parameter 'text' not specified. ❯ Module.throwResponseError src/utils/utils.ts:23:10 ❯ Object.translate src/engines/deepl.ts:48:15 ❯ test/translate.test.ts:84:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { region: 'deepl' }
test
Process completed with exit code 1.
test/translate.test.ts > translator > baidu translate: src/engines/baidu.ts#L55
Error: Translate fail ! error_code:54001, error_msg: Invalid Sign ❯ Object.translate src/engines/baidu.ts:55:15 ❯ test/translate.test.ts:67:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { region: 'baidu' }
test/translate.test.ts > translator > deepl translate: src/utils/utils.ts#L23
Error: Translate fail ! 400: Bad Request Parameter 'text' not specified. ❯ Module.throwResponseError src/utils/utils.ts:23:10 ❯ Object.translate src/engines/deepl.ts:48:15 ❯ test/translate.test.ts:84:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { region: 'deepl' }
test-coverage
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-coverage
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
dist Expired
250 KB