遇到报错?
粘贴日志,一键获得修复方案
面向 AI 编程助手和开发者的可搜索编程错误知识库 —1225 个真实案例,10 种可复用修复模式
为什么选择 dbug.wiki
正则匹配搜索
每个 Bug 条目包含 error_signature 正则,支持 AI 自动匹配错误日志
一键修复命令
每个 Bug 配有 detect_command 和 fix_command,可直接复制执行
可复用修复模式
从真实案例中沉淀出前端、后端、数据库三大类修复模式
AI 友好 API
提供搜索 API,AI 编码助手可直接调用,实时匹配错误与修复
知识折旧管理
每个方案标注置信度、验证时间、废弃标记,保持知识新鲜
全平台覆盖
Web / H5 / 小程序 / 桌面 / MCP 全产品矩阵
热门 Bug
查看全部 1225 个 →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()`2026-06-07 `production-update.sh` 反复 git merge 冲突
第 1 次 git pull 被本地修改阻止,回退后再次 pull 仍被同一 untracked 文件阻止,连续失败 5 次。
报表 SQLGrammarException — `user_events` 表未建
Flyway V83 未执行,`user_events` 表缺失
商品访问统计 SQL LIKE 不匹配(P0 数据 Bug)
路由为 `/products/:id`,SQL 用 `LIKE '%/product/%'`(单数),无法匹配 `/products/`(复数)
SQL 统计条件改为 `page_path LIKE '/products%'`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` 查找PostgreSQL bind mount 数据目录密码与 .env.prod 不一致导致 backend 反复重启
docker compose up 后 backend 容器 CrashLoopBackOff,反复重启;postgres/redis 健康但 backend 无法连上 DB;alembic upgrade head 无法执行
修复模式
查看全部 10 种 →隐藏 → 禁用
用户因条件不满足时,将元素从 v-if 移除改为 :disabled + Tooltip 提示
v-if="condition"v-if="canAlways" + :disabled="!condition" + <el-tooltip>入口解耦
一个按钮触发多个互相冲突的操作时,拆分为独立入口
一个按钮同时触发AI对话框和企微客服AI对话框和企微客服独立入口数据源补全
沙箱/预览环境模板引用未注入的数据源时,补全mockData
setup() 未返回 template 引用的变量注入完整 mockData { days, trend, summary }观察者生命周期控制
ResizeObserver 与手动 DOM 操作互相覆盖时,控制观察者生命周期
ResizeObserver contentRect.height 覆盖手动拖拽拖拽前 detachObserver() → 松手后 reattachObserver()