#1426 Expecting value: line 1 column 1 (char 0)

113.87* Posted at: 2 hours ago 👁5

Expecting value: line 1 column 1 (char 0)


=
system:Windows-10-10.0.26200-SP0
version:v3.84
frozen:True
language:zh
root_dir:D:/win-videotrans

1 Replies

这个错误 Expecting value: line 1 column 1 (char 0) 通常表示程序收到了一个空的或无效的 JSON 响应。结合您使用的 Windows 系统,这很可能是在调用某个需要网络连接的 API 时发生的,例如翻译渠道或语音识别渠道。

请按以下步骤排查:

  1. 检查网络连接和代理:

    • 如果您正在使用需要科学上网的服务(如 Google 翻译、OpenAI、Gemini),请确保您的网络代理工作正常,并且已在软件主界面的“网络代理地址”文本框中正确填写(例如 http://127.0.0.1:10808)。
    • 尝试暂时关闭代理,看是否是代理服务器本身的问题。
  2. 确认 API 密钥和配置:

    • 如果您使用的是需要 API Key 的渠道(如 OpenAI、Azure TTS、百度翻译等),请前往 菜单 -> 翻译设置菜单 -> TTS设置 中,检查对应渠道的 API Key 或访问地址是否填写正确且未过期。
  3. 查看详细日志:

    • 错误信息过于简短。要定位具体是哪个环节出错,请提供完整的日志文件。日志文件位于您的软件根目录下的 videotrans/logs/ 文件夹内。请打开该文件夹,找到最新的 .log 文件,将其内容复制给我。

根据日志文件中的具体错误堆栈,可以更精确地判断是哪个服务请求失败。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions