Own servers still get server 0.2.12 without d5947c7, so the phone stays on Reconnecting (403 on the /api/events preflight)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Issue指出,已安装的 dist-server/index.js 中包含CORS允许列表,而上游修复位于 server/mobile/request.ts。阅读这些文件,并检查面向自托管安装的服务器包是如何构建和发布的。完成标准是全新安装包含所需的preflight标头,且报告中的 /api/events 请求不再收到403。
由索引模型根据 Issue 内容生成。
描述
What happened
A fresh own-server install on 2026-11-18, from the 0.2.18 desktop app's install line, installs a server package whose package.json says 0.2.12. duskbot-server-update.timer finds nothing newer.
With that server, the iPhone app pairs and can send messages (they reach the bot and show up in the desktop app), but it stays on "Reconnecting" and never shows the bot's replies. Every retry sends this preflight:
OPTIONS /api/events?screens=off
Origin: capacitor://localhost
Access-Control-Request-Method: GET
Access-Control-Request-Headers: authorization,cache-control
The server answers 403. The installed dist-server/index.js only allows Authorization, Content-Type, Last-Event-ID, X-Dusk-Background, X-Dusk-Sha256.
main already fixes this in d5947c7 ("phone: live stream no longer stuck on Reconnecting"), which adds Accept and Cache-Control in server/mobile/request.ts, and that commit is older than the v0.2.15 to v0.2.18 tags. The server build that own-server installs receive doesn't have it.
Adding "Cache-Control" to that list in the installed file and restarting duskbot.service fixed it on my server: the preflight returns 204 and replies show up on the phone. The next server update will overwrite that local edit, so this only holds until a fixed build ships to own servers.
Steps to reproduce
- Install on a fresh server with the desktop app's install line.
- Make the server reachable from the phone and pair it (I had to work around the pairing screen; see #78).
- Send a message from the phone.
- The message reaches the bot, but the reply never shows on the phone, and the app shows Reconnecting.
Version
desktop 0.2.18, server package 0.2.12, iOS app build 2611142024
Platform
Own server (VPS), Debian 13 amd64, with the iPhone app
- 主要语言
- TypeScript
- 星标
- 277
- 派生
- 27
- 平均合并
- 2 小时 47 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DuskBotAI/duskbot 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
After uninstalling an own server, the desktop app stays on it and shows Cloudflare's Error 1033 page未关闭
难度 3/5 1-2 天 新手友好度 65/100
维护者通常 1 天内回复
-
install.sh --tailscale replaces whatever the host already serves on tailnet port 443可能已有人在做 @viniciusbregoli 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
维护者通常 1 天内回复
查看 DuskBotAI/duskbot 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
inabagumi/shinju-date#7406 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
umami-software/umami#4787 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复