bookfere / Ebook-Translator-Calibre-Plugin

A Calibre plugin to translate ebook into a specified language.
https://translator.bookfere.com
GNU General Public License v3.0
1.67k stars 108 forks source link

使用从其他AI服务转化openai接口的服务作为翻译引擎时,点击“停止翻译”后,会导致Calibre假死 #222

Closed GoTop closed 7 months ago

GoTop commented 7 months ago

MacOS Sonoma 14.1.2 (23B92) Calibre版本 7.6.0 Ebook-Translator-Calibre-Plugin版本:Rolling Releas:ebook-translator_20240304213912

请问这可能是这个“从其他AI服务转化openai接口的服务”缺少什么返回什么信息导致的么?

bookfere commented 7 months ago

“并发限制”和“超过错误次数停止翻译”的设置分别是多少?

GoTop commented 7 months ago

“并发限制”和“超过错误次数停止翻译”的设置分别是多少?

WX20240309-124813@2x

bookfere commented 7 months ago

你需要把“重试次数”设置成 1 再测试看看。因为以现在时间间隔递增方式(5、10、30、120、600、3600 ...),在 30 次重试期间,在你按下停止按钮时,可能已经有一个非常长的等待时间出现了,这就导致程序看起来无法停止。

GoTop commented 7 months ago

请问你说的“时间间隔递增方式(5、10、30、120、600、3600 ...)”指的是什么时间呢?

bookfere commented 7 months ago

失败后重试的时间间隔。

GoTop commented 7 months ago

“重试次数”设置成 1

把“重试次数”设置成 1后,停止翻译,还是会假死

bookfere commented 7 months ago

看看错误日志都有什么信息。

GoTop commented 7 months ago

看看错误日志都有什么信息。

我看了一下,错误日志里只是翻译时接口提示信息

点击“停止翻译”后,错误日志上并不会有新的信息生成

══════════════════════════════════════
原文:Market Timing

Financial Newsletters

Financial Shows On TV

Wall $Treet Week

Financial Magazines

The Bogleheads Contest

Predicting Interest Rates

Stay The Course

Chapter Fourteen: Savvy Ways to ...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"You have exceeded the daily limit for sending messages to the bot. Please try again later.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Chapter Nineteen: Mastering Your Investments Means Mastering Your Emotions

Welcome to the Field of Behavioral Economics

Greed and Fear

How Smart People Make Bad Investment Decisions

Keeping Emotio...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"Something wrong occurs, please retry. If the error persists, please contact the support team.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Taylor Larimore, CCL (Miami, FL) was dubbed by Money magazine as “the Dean of the Vanguard Diehards.” Jack Bogle calls Taylor “King of the Bogleheads.” Taylor is remarkably well informed after having ...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"You have exceeded the daily limit for sending messages to the bot. Please try again later.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A relationship between two variables.

Cost basis:

A term used to describe the original cost of an investment with adjustments allowed by tax law.

Country risk:

The risk in international funds such...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"You have exceeded the daily limit for sending messages to the bot. Please try again later.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A fund used by wealthy individuals and institutions that is allowed to use risky strategies that are not available to mutual funds.

High-yield bonds:

See junk bonds.

International fund:

A mutual f...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"You have exceeded the daily limit for sending messages to the bot. Please try again later.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"You have exceeded the daily limit for sending messages to the bot. Please try again later.","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 2 次 / 等待 10 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 2 次 / 等待 10 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 3 次 / 等待 30 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 3 次 / 等待 30 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 2 次 / 等待 10 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 4 次 / 等待 120 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 4 次 / 等待 120 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 3 次 / 等待 30 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 1 次 / 等待 5 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 4 次 / 等待 120 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 2 次 / 等待 10 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 3 次 / 等待 30 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 4 次 / 等待 120 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 5 次 / 等待 600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 5 次 / 等待 600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 5 次 / 等待 600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 5 次 / 等待 600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:An IRS rule that disallows the loss from the sale of a fund if the investor invests in a “substantially identical” fund within 31 days.

Yield:

Income received from an investment expressed as a perce...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 6 次 / 等待 3600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:The Millionaire in You by Michael LeBoeuf (New York: Crown Business, 2002). A primer on how to invest money and time intelligently to achieve financial freedom. An audio version of the book is publish...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 6 次 / 等待 3600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:Bogle on Mutual Funds: New Perspectives for the Intelligent Investor by Vanguard founder John Bogle (New York: McGraw-Hill, 1993). Jack Bogle wanted to make this first book on mutual fund investing eq...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 6 次 / 等待 3600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
══════════════════════════════════════
原文:A Random Walk Down Wall Street by Burton G. Malkiel (New York: Norton, 2003). An investor classic—regularly updated. Malkiel is a professor at Princeton and a former member of the Vanguard board of di...
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
状态:失败 6 次 / 等待 3600 秒
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
错误信息:无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 208, in get_result
    return response if callback is None else callback(response)
                                             ^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.custom", line 131, in _parse
    result = eval(
             ^^^^^
  File "<string>", line 1, in <module>
KeyError: 'choices'

{"error":{"message":"no_available_user_auth","type":"request_error","param":"","code":"500"}}
bookfere commented 7 months ago

提交 7cc819195a56c0d87620d57632ab944cbc25a183 修复了这个问题,试试最新版本。

GoTop commented 7 months ago

提交 7cc8191 修复了这个问题,试试最新版本。

新版本里可以停止翻译了

从我的错误日志里,能看出bug出在哪里么?

bookfere commented 7 months ago

没能直接从错误信息中发现问题。在发布新版本做回归测试时重现了这个错误,原因是存放翻译出错段落的队列没清空导致的。

GoTop commented 6 months ago

没能直接从错误信息中发现问题。在发布新版本做回归测试时重现了这个错误,原因是存放翻译出错段落的队列没清空导致的。

最新版2.3.2由开始出现无法停止翻译的问题了,必须强制退出才行 WX20240323-234726@2x

WX20240323-234800@2x