Vite proxied `flutter run -d chrome` does not respond with RunRequest
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- devtools, networking, web-dev
调研方向
使用所示的 Vite 代理配置重现 flutter run -d chrome --web-port 5710,然后跟踪 /$dwdsSseHandler 的 ConnectRequest 经过 DWDS 的过程。当经过代理的 WebSocket 无需手动发送请求即可收到预期的 RunRequest 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I'm proxying flutter run -d chrome --web-port 5710 through a Vite proxy and it doesn't respond with a RunRequest over the dwds websocket. When flutter.js, proxied through vite to run embedded in a Svelte app, creates the connection to the WebSocket, RunRequest never gets returned from the WebScoket.
Here is the code I can manually run in the console to get a RunRequest (I copied this by going to http:localhost:5710 and copying ConnectRequest from the Network tab):
const ws = new WebSocket('ws://localhost:5173/$dwdsSseHandler')
ws.send('["ConnectRequest","appId","Im4Su93feIfeEOgiTPFjmA==","instanceId","006dcb10-0d68-11ef-907d-716f5f111410","entrypointPath","main_module.bootstrap.js"]')
RunRequest is returned in response to the ConnectRequest through the WS proxy, so I've verified it's not the WebSocket proxy or a hostname origin issue. Do you have any ideas why this wouldn't respond with this event?
Here is the vite config:
import {sveltekit} from '@sveltejs/kit/vite'
import {defineConfig} from 'vite'
export default defineConfig({
server: {
proxy: {
'/dev/ui': {
rewrite: (path) => path.replace(/^\/dev\/ui\//, '/'),
target: 'http://localhost:5710',
ws: true,
},
'/$dwdsSseHandler': {
target: 'http://localhost:5710',
ws: true,
},
},
},
plugins: [sveltekit()],
})
- 主要语言
- Dart
- 星标
- 224
- 派生
- 95
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dart-lang/webdev 的其他 Issue
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web apps可能已有人在做 @Markzipan 于 1 天前认领。 未关闭P1 package:dwds triaged type-bug
难度 2/5 1-3 小时 新手友好度 74/100
-
P2 triaged
难度 4/5 3-5 天 新手友好度 35/100
-
P3 triaged
难度 4/5 3-5 天 新手友好度 45/100
-
P2 package:dwds triaged type-bug
难度 3/5 1-2 天 新手友好度 38/100
-
P2 package:dwds triaged type-bug
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
aaronified/fluenough#918 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
Tencent/tdesign-flutter#1233 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
fossasia/badgemagic-app#2025 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 4 天内回复