遇到报错?
粘贴日志,一键获得修复方案

面向 AI 编程助手和开发者的可搜索编程错误知识库 —1225 个真实案例,10 种可复用修复模式

1225
收录 Bug
878
已修复
10
可复用模式
550
覆盖技术栈

为什么选择 dbug.wiki

正则匹配搜索

每个 Bug 条目包含 error_signature 正则,支持 AI 自动匹配错误日志

一键修复命令

每个 Bug 配有 detect_command 和 fix_command,可直接复制执行

可复用修复模式

从真实案例中沉淀出前端、后端、数据库三大类修复模式

AI 友好 API

提供搜索 API,AI 编码助手可直接调用,实时匹配错误与修复

知识折旧管理

每个方案标注置信度、验证时间、废弃标记,保持知识新鲜

全平台覆盖

Web / H5 / 小程序 / 桌面 / MCP 全产品矩阵

BUG-0100已修复
python-deps-compat

passlib[bcrypt] 与 bcrypt 5.x 不兼容

注册后无法登录,密码验证永远返回 False。([cursor_202606072236.md:803](file://d:/chemindra/cursor_202606072236.md#L803))

修复命令
(`commit 1d6a90d`):
- 从 `requirements.txt` 移除 `passlib[bcrypt]`,改用 `bcrypt>=4.0.0`
- `security.py` 使用 `bcrypt.hashpw()` / `bcrypt.checkpw()` 替代 `pwd_context.hash()` / `pwd_context.verify()`
置信度 85%
BUG-0147已修复
3 次

2026-06-07 `production-update.sh` 反复 git merge 冲突

第 1 次 git pull 被本地修改阻止,回退后再次 pull 仍被同一 untracked 文件阻止,连续失败 5 次。

置信度 85%
BUG-0176已修复
unknown

报表 SQLGrammarException — `user_events` 表未建

Flyway V83 未执行,`user_events` 表缺失

置信度 85%
BUG-0173已修复
unknown

商品访问统计 SQL LIKE 不匹配(P0 数据 Bug)

路由为 `/products/:id`,SQL 用 `LIKE '%/product/%'`(单数),无法匹配 `/products/`(复数)

修复命令
SQL 统计条件改为 `page_path LIKE '/products%'`
置信度 85%
BUG-0050已修复
db-connection-encoding

Windows 中文环境下 psycopg2 UnicodeDecodeError

Windows 中文环境下执行 `alembic upgrade head`,psycopg2 报错: ``` UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 61: invalid continuation byte ``` ([cursor_202606072236.md:466](file://d:/chemindra/cursor_202606072236.md#L466)、[cursor_202606072236.md:538](file://d:/chemindra/cursor_202606072236.md#L538) 两次重现)

修复命令
(`commit 1d6a90d` `fix: Windows 本地 PostgreSQL 开发与 bcrypt 兼容`):
1. `config.py` 启动时设置 `os.environ.setdefault("PGCLIENTENCODING", "UTF8")`
2. `session.py` 连接参数添加 `client_encoding="utf8"` + `connect_timeout=10`
3. `alembic/env.py` 同样添加 `client_encoding` 和 `PGCLIENTENCODING`
4. Settings 同时从 `_SERVER_ROOT / .env` 和 `_REPO_ROOT / .env` 查找
置信度 85%
BUG-0001已修复
backend-config

PostgreSQL bind mount 数据目录密码与 .env.prod 不一致导致 backend 反复重启

docker compose up 后 backend 容器 CrashLoopBackOff,反复重启;postgres/redis 健康但 backend 无法连上 DB;alembic upgrade head 无法执行

置信度 70%

准备好搜索你的第一个 Bug 了吗?

1225 个真实案例,覆盖 57 种修复类型 · 后端 / 前端 / 数据库 / Docker / Nginx / Kubernetes

浏览 Bug 清单