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

本地运行时PDF文档翻译出错 #30

Open
Animofree opened this issue Apr 23, 2021 · 0 comments
Open

本地运行时PDF文档翻译出错 #30

Animofree opened this issue Apr 23, 2021 · 0 comments

Comments

@Animofree
Copy link

选择“百度”翻译接口,翻译PDF文档时出现 HTTPConnectionPool(host='www.google.com', port=80) 错误
而在线翻译正常运行
报错如下

[23/Apr/2021 09:40:57] "POST /baidu_trans/ HTTP/1.1" 200 6
[23/Apr/2021 09:41:06] "POST /upload_func/ HTTP/1.1" 200 1
当前正在翻译翻译第1页...
图像::: <image: DeviceRGB, width 248, height 272, bpc 8>
Contents lists available at ScienceDirect
翻译过程出现异常如下:
HTTPConnectionPool(host='www.google.com', port=80): Max retries exceeded with url: /sorry/index?continue=http://translate.google.cn/translate_a/single%3Fclient%3Dt%26sl%3Den%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%26tl%3Dzh-CN%26hl%3Dzh-CN%26dt%3Dat%26dt%3Dbd%26dt%3Dex%26dt%3Dld%26dt%3Dmd%26dt%3Dqca%26dt%3Drw%26dt%3Drm%26dt%3Dss%2520%250A%2520%2520%2520%2520%2520%2520%2520%2520%26dt%3Dt%26ie%3DUTF-8%26oe%3DUTF-8%26clearbtn%3D1%26otf%3D1%26pc%3D1%26srcrom%3D0%26ssel%3D0%26tsel%3D0%26kc%3D2%26tk%3D553706.935582%26q%3DContents%2Blists%2Bavailable%2Bat%2BScienceDirect&hl=zh-CN&q=EgRwJOv_GLfLiIQGIhkA8aeDS5hW7D0u38QuTBln3HoWHPZkeqfMMgFy (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000020940E7CCC8>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
[23/Apr/2021 09:41:10] "POST /upload_trans/ HTTP/1.1" 200 4

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

1 participant