Vite proxied `flutter run -d chrome` does not respond with RunRequest
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dart-lang/webdev のほかの issue
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web appsオープン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
dart-lang/webdev の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tencent/tdesign-flutter#1229 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
berkmancenter/frankly#732 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rodydavis/signals.dart#510 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
pentakoron1/brazier#33 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
LonelyGriffin/noetec#51 ·