-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite proxied flutter run -d chrome
does not respond with RunRequest
#2425
Comments
Trying to debug/read code (to no avail) and was curious to see that neither appId nor instanceId match when proxying through Vite vs connecting to flutter run's dwds ws directly. Why would that be the case?
|
Hi @eighty4, Were you able to figure this out? It looks like you're assuming that |
I never resolved the issue nor could workaround it. I also haven't tried recreating it since reporting a few Flutter versions ago. Maybe removing Hopefully during the holidays I'll have time to revisit the hobby project this occurred in. |
Even though that Vite proxy says I still have no idea what prevents a debug web server from bootstrapping when reverse proxied. It would be ideal to run a webapp and a The proxying works fine if i run with |
The first image is The second image is of the messages exchanged after the initial connect message if connecting without the reverse proxy in the middle and operating as expected. |
Alright, did some testing between the different modes after looking at the code.
inject.dart does add the vars to window when proxied through a local web server, unlike
|
I'm proxying
flutter run -d chrome --web-port 5710
through a Vite proxy and it doesn't respond with aRunRequest
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):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:
The text was updated successfully, but these errors were encountered: