subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.28k stars 202 forks source link

Exception: WebSocketException: Connection to 'http://127.0.0.1:40391#' was not upgraded to websocket #232

Closed JordanRoberts1 closed 1 year ago

JordanRoberts1 commented 1 year ago

I am facing a similar issue as described here: https://github.com/cirruslabs/docker-images-flutter/issues/158.

As stated in my response there, however, I am using this github action, not docker image, cirrusci/flutter. I'm not sure though what difference this makes in regards to the error..

Full error:

Shell: [ERROR:flutter/shell/testing/tester_main.cc(419)] Unhandled exception
Shell: Exception: WebSocketException: Connection to '[http://127.0.0.1:40391#](http://127.0.0.1:40391/#)' was not upgraded to websocket
Shell: Stack trace: #0      _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1011:41)
Shell: #1      WebSocket.connect (dart:_http/websocket.dart:320:22)
Shell: #2      main (file:///tmp/flutter_tools.OAOLFC/flutter_test_listener.HWCTAV/listener.dart:49:13)
Shell: #3      _runMain.<anonymous closure> (dart:ui/hooks.dart:131:23)
Shell: #4      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297:19)
Shell: #5      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)