Repository navigation
桌面端启动崩溃:Web authentication failed(dsh-auth Cookie 累积 → 请求头超 16KB → HTTP 431) #11968
huapukebu520
started this conversation in
General
Replies: 2 comments
|
pnpm install dsh-cookie-cleaner ① 先看现状(客户端开着也能跑,只会告诉你读不到)& "$env:USERPROFILE.dsh\profiles\desktop\node_modules.bin\dsh-cookie-cleaner.cmd" ② 完全退出客户端:托盘图标 → 退出,并确认进程列表已无 DeepSeek HarnessGet-Process | Where-Object { $_.ProcessName -match 'DeepSeek|dsh' } # 应当没有输出 ③ 清理(先看会删几条,再真删)& "$env:USERPROFILE.dsh\profiles\desktop\node_modules.bin\dsh-cookie-cleaner.cmd" --clean --dry-run |
0 replies
|
感谢磁刀!按你给的流程已经完全跑通了:
环境:DSH 0.2.2-rc.1 / win-x64。之前是手工把整个 Cookies 库挪走来绕过,治标不治本;现在才算真正常。工具很实用,谢谢! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
环境:@deepseek-ai/dsh-desktop 0.2.1-rc.5(Electron 44.7.0 / Node 24.21.0 / win32 x64);崩溃阶段 startup;报错 desktop welcome: Web authentication failed,位置 app.asar/lib/main.js:8886 connectDesktopWelcome。
现象:启动即弹 DeepSeek Harness is unavailable;Exit / Restart / Disable third-party plugins 三个按钮均无效,禁用全部第三方插件后依旧崩溃。
根因(实测):每次启动向本地 Host(127.0.0.1 随机端口)认证时签发一个 dsh-auth-<端口> Cookie(30 天),端口每次变而旧 Cookie 永不清理;累积约 71 个后请求头约 17-18KB,超过 Node 默认 16KB 上限,Host 返回 HTTP 431 Request Header Fields Too Large,主程序把非 200 判为认证失败。
证据:10 份 crash log 均指向 main.js:8886;抓包显示第二次请求带约 71 个 Cookie、Host 回 HTTP/1.1 431;移走 Network\Cookies 后立即恢复,登录态与聊天记录不受影响。
建议:1) 固定 Cookie 名并覆盖或按实例隔离;2) 启动时清理失效端口的 dsh-auth-*;3) 提高 --max-http-header-size 或对 431 明确提示;4) 认证失败时提供“清理本地认证缓存并重试”。
All reactions