Vite proxied `flutter run -d chrome` does not respond with RunRequest
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- devtools, networking, web-dev
Direzione di ricerca
Riprodurre flutter run -d chrome --web-port 5710 con la configurazione proxy Vite mostrata, quindi tracciare il ConnectRequest di /$dwdsSseHandler attraverso DWDS. Il lavoro è completato quando il WebSocket sottoposto a proxy riceve il RunRequest previsto senza richiedere l’invio manuale di una richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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()],
})
- Lingua principale
- Dart
- Stelle
- 224
- Fork
- 95
- Merge medio
- 3g 8h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dart-lang/webdev
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web appsForse già presa @Markzipan l’ha presa oggi. ApertaP1 package:dwds triaged type-bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
P2 triaged
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
P3 triaged
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
P2 package:dwds triaged type-bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
-
Error in Flutter myappApertaP2 package:dwds triaged type-bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di dart-lang/webdev
Issue simili
-
'图片收藏'功能无法滑动Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
venera-app/venera-prime#50 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Tencent/tdesign-flutter#1229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
VeryGoodOpenSource/very_good_analysis#254 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
berkmancenter/frankly#732 ·
I maintainer di solito rispondono entro 1 giorno