Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.0 error: SyntaxError Unexpected token '<', \"<html lang\ #42

Closed
thawon opened this issue Nov 1, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@thawon
Copy link

thawon commented Nov 1, 2022

Hi there,

The new version (2.0.0) errors out when trying to translate the following to zh-CN:
"@เบิร์ด..originol @ยายมีกะพรลี่จัง @kittikorn Intra @อุ๋มอิ๋ม ทำงานตามยอดที่เรากำหนดนะครับถ้าQcบอกว่าตรวจไม่ทันหรือคัดงาน PSI แล้วพวกเค้าไม่เอา คัดคัดบอกได้แต่ไปถึงหน้างานเค้าแล้วบอกไม่ได้ ไม่ใช่ปัญหาของเรานะครับ ถ้าเค้าเบรคเพราะตรวจงานไม่ทันเอาลงกลุ่มจีนได้เลย"

Here is the error:
"SyntaxError: Unexpected token '<', "<html lang"... is not valid JSON\n at JSON.parse ()\n at consumeEnd (/app/node_modules/undici/lib/api/readable.js:237:20)\n at BodyReadable. (/app/node_modules/undici/lib/api/readable.js:219:7)\n at BodyReadable.emit (node:events:513:28)\n at BodyReadable.emit (/app/node_modules/undici/lib/api/readable.js:66:18)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"

I've tried it on the previous version (1.1.2) and it works. So I guess it only happens in the version 2.0.0

When you get a chance, would you be able to look into it? Thanks a lot :D

Regards,
Tee Uttamavanit

@thawon thawon changed the title SyntaxError Unexpected token '<', \"<html lang\ Version 2.0.0 error: SyntaxError Unexpected token '<', \"<html lang\ Nov 1, 2022
@iamtraction iamtraction added the bug Something isn't working label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants