Description
When I at the beginning of the application is started and a websocket connection and send the data for the first time the flutter run can appear the following error console, it is strange that the next to repackage this problem will not appear again
Unhandled exception:
Exception: Error connecting to observatory: WebSocketChannelException: WebSocketChannelException: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/ws
#0 throwToolExit (package:flutter_tools/src/base/common.dart:29)
#1 VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:653)
#2 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:496)
#3 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:344)
#4 VMService.getVM (package:flutter_tools/src/vmservice.dart:172)
#5 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:218)
#6 HotRunner.attach (package:flutter_tools/src/run_hot.dart:97)
#7 HotRunner.run (package:flutter_tools/src/run_hot.dart:222)
#8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:281)
#9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:151)
#10 RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:196)
#11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:121)
#12 CommandRunner.runCommand (package:args/command_runner.dart:194)
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:262)
#14 CommandRunner.run. (package:args/command_runner.dart:109)
#15 Future.Future.sync (dart:async/future.dart:208)
#16 CommandRunner.run (package:args/command_runner.dart:109)
#17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:157)
#18 run. (package:flutter_tools/executable.dart:140)
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
#20 AppContext.runInZone. (package:flutter_tools/src/base/context.dart:66)
#21 _rootRun (dart:async/zone.dart:1120)
#22 _CustomZone.run (dart:async/zone.dart:1001)
#23 runZoned (dart:async/zone.dart:1465)
#24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25 run (package:flutter_tools/executable.dart:113)
#26 main (package:flutter_tools/executable.dart:66)
#27 main (file:///Users/pengyun/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#28 _startIsolate. (dart:isolate-patch/isolate_patch.dart:263)
#29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)