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

ERROR #9

Open
LIkensust opened this issue Feb 7, 2021 · 3 comments
Open

ERROR #9

LIkensust opened this issue Feb 7, 2021 · 3 comments

Comments

@LIkensust
Copy link

似乎是翻译API失效了.
在不同的机器和网络下都出现这个ERROR.

(node:39966) UnhandledPromiseRejectionWarning: Error
at getError (/Users/keene/terminalApplication/pdfTranslator/pdfTranslator/node_modules/translation.js/dist/tjs.node.common.js:83:13)
at ClientRequest. (/Users/keene/terminalApplication/pdfTranslator/pdfTranslator/node_modules/translation.js/dist/tjs.node.common.js:124:24)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:640:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at TLSSocket.socketOnData (_http_client.js:509:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:303:12)
at readableAddChunk (_stream_readable.js:279:9)

@ysl2
Copy link

ysl2 commented May 31, 2022

+1

@xuxiaowei088
Copy link

不知道为什么在linux中打开之后,出现

at ClientRequest. (/home/xuxiaowei/github/pdfTranslator/pdfTranslator/node_modules/translation.js/dist/tjs.node.common.js:124:24)
at Object.onceWrapper (node:events:642:26)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9) {
code: 'API_SERVER_ERROR'
}
不知道如何进行修改

@LIkensust
Copy link
Author

LIkensust commented Aug 31, 2022

不知道为什么在linux中打开之后,出现

at ClientRequest. (/home/xuxiaowei/github/pdfTranslator/pdfTranslator/node_modules/translation.js/dist/tjs.node.common.js:124:24) at Object.onceWrapper (node:events:642:26) at ClientRequest.emit (node:events:527:28) at HTTPParser.parserOnIncomingClient (node:_http_client:631:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at TLSSocket.socketOnData (node:_http_client:494:22) at TLSSocket.emit (node:events:527:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) { code: 'API_SERVER_ERROR' } 不知道如何进行修改

用这个吧 https://github.com/LIkensust/copy_then_translate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants