DevTools fails to load through proxies that don't support SSE #2892
Labels
cross-screen
Issues that affect multiple DevTools screens, i.e. shared functionality and widgets
P2
important to work on, but not at the top of the work list.
Milestone
I tried to launch DevTools in a cloud editor that doesn't support SSE (its connections will just hang indefinitely) and it failed to load (just leaving a white screen after printing the version number to the console).
The network tab looks like this:
I can't easily confirm, but I think it will be hanging on this
await
here:devtools/packages/devtools_app/lib/main.dart
Line 28 in 43b2f5e
That
init()
call tries to use storage which will be aServerConnectionStorage
becauseDevToolsServerConnection.connect
does not return null here:devtools/packages/devtools_app/lib/src/config_specific/framework_initialize/_framework_initialize_web.dart
Lines 18 to 23 in f38f4ac
It doesn't return null, because in
connect()
the call toapi/ping
works fine (it's not SSE), which then unconditionally creates anSseClient
:devtools/packages/devtools_app/lib/src/server_api_client.dart
Line 28 in 86102bd
If we want to support this, I think there are two options:
null
(this would effectively disable the server though, which may affect some functionality)@devoncarew @jacob314 I don't know if this is currently worth pursuing, but thought it was worth capturing the issue somewhere perhaps to come back to.
The text was updated successfully, but these errors were encountered: