Skip to content

Response too long 的Exception并未得到有效处理,导致后台一直请求ollama数据死循环 #535

@damaoooo

Description

@damaoooo

问题描述

请对问题进行描述,并提供日志或截图
请确认 issues 中没有相同问题且完整阅读 wiki
本项目不处理网络环境引发的问题(例如 empty translation result/connection reset/check_hostname requires server_hostname/certificate verify failed/unable to connect to proxy/LocalEntryNotFoundError)

如题,ollama出现Response too long 的Exception并未得到有效处理,导致后台一直请求ollama数据死循环。

Files before translation: ['x.pdf']
0%| | 0/14 [00:00<?, ?it/s]Response too long
ERROR:pdf2zh.converter:All models failed
Response too long
ERROR:pdf2zh.converter:All models failed
Response too long
ERROR:pdf2zh.converter:All models failed
Response too long

测试文档

Important

请提供用于复现测试的 PDF 文档

任意PDF文档都行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions