tisfeng / tisfeng/Easydict

🐞 反馈问题:bing翻译无法使用

Open
#1,237 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
14.6k
Forks
746
Avg merge
3d 18h
Merged PRs (30d)
18

Description

### 请先确认以下事项:

- [x] 请务必查看 [常见问题](https://github.com/tisfeng/Easydict/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
- [x] 已仔细阅读了 [README](https://github.com/tisfeng/Easydict#readme)
- [x] 在 [issues](https://github.com/tisfeng/Easydict/issues) 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
- [x] Easydict 已升级到 [最新版本](https://github.com/tisfeng/Easydict/releases)
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,**不遵循规则的 issue 可能会被无视或直接关闭**

### 问题描述

Failed, API Error: Response could not be serialized, input data was nil or zero length.
无论是否填写cookie key都会出现此报错

### 该问题是否可以稳定重现?

可重现

### 重现步骤

正常输入并翻译

### 截图

Image

### 运行日志(zip 文件)

[com.izual.Easydict 2026-07-06--15-59-26-698.log.zip](https://github.com/user-attachments/files/29737814/com.izual.Easydict.2026-07-06--15-59-26-698.log.zip)

### 期望结果

bing翻译正常使用

### 解决方案(可选)

chatgpt:90% 像是微软 Bing 网页接口改版或返回了异常响应,EasyDict 2.20.0 尚未兼容。

### 设备型号 && 系统版本

Apple M1 Pro,macOS 15.7.2

### 是否愿意提交 PR 解决该问题?

- [ ] 我愿意提交 PR 来解决该问题

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Bing translation integration in Easydict and reproduce the reported serialization error using the provided log and the normal translation flow. The work is done when Bing translation succeeds with and without a cookie key on macOS, without the nil or zero-length response error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
api, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.