Repository navigation
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-androidAndroid applications specificallyAndroid applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Exception
Exception: Error connecting to observatory: WebSocketChannelException: WebSocketChannelException: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8122/ws
#0 throwToolExit (package:flutter_tools/src/base/common.dart:29)
#1 VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:738)
<asynchronous suspension>
#2 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566)
<asynchronous suspension>
#3 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414)
<asynchronous suspension>
#4 VMService.getVM (package:flutter_tools/src/vmservice.dart:243)
#5 FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:88)
<asynchronous suspension>
#6 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:584)
<asynchronous suspension>
#7 HotRunner.attach (package:flutter_tools/src/run_hot.dart:106)
<asynchronous suspension>
#8 HotRunner.run (package:flutter_tools/src/run_hot.dart:209)
<asynchronous suspension>
#9 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:345)
<asynchronous suspension>
#10 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:241)
<asynchronous suspension>
#11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:181)
<asynchronous suspension>
#12 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:279)
<asynchronous suspension>
#14 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#15 new Future.sync (dart:async/future.dart:222)
#16 CommandRunner.run (package:args/command_runner.dart:109)
#17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:162)
#18 run.<anonymous closure> (package:flutter_tools/executable.dart:143)
<asynchronous suspension>
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#20 AppContext.runInZone.<anonymous closure> (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:1467)
#24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25 run (package:flutter_tools/executable.dart:114)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:67)
<asynchronous suspension>
#27 main (file:///home/reyer/reyer/flutter/master/packages/flutter_tools/bin/flutter_tools.dart:16)
#28 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
Happens both on unix and windows
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-androidAndroid applications specificallyAndroid applications specificallyt: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
Pacane commentedon Oct 2, 2017
Would help to have more context.
flutter doctor, sample code for the use case?
cbracken commentedon Oct 2, 2017
Thanks for reporting! As @Pacane mentions, would you be able to provide the following info:
flutter doctor.flutter run --verbose(with whichever other flags you were using at the time)JFixby commentedon Oct 3, 2017
JFixby commentedon Oct 3, 2017
Hixie commentedon Oct 3, 2017
Is this specifically with your application, or with a particular simulator? I would expect to have heard more complaints if this was a wide-spread problem...
Hixie commentedon Dec 20, 2017
@JFixby do you still see this?
[-]Current master doesn't work with emulator[/-][+]"WebSocketChannelException: HttpException: Connection closed before full header was received " with Android emulator[/+]JFixby commentedon Dec 20, 2017
I think this happens when flutter app crashes right after a start for some reason.
What is happening:
So if developer missed this moment (didn't see the crash), it looks to him like:
Logcat is reset by IDEA on the second start, so it has no info in there about the crash.
JFixby commentedon Dec 20, 2017
@Hixie actually I don't work with Flutter anymore, so nothing I can help with.
Hixie commentedon Dec 21, 2017
@JFixby Sorry to hear that, do let me know if there's anything we could improve to help you work with Flutter again in the future. :-)
cc @devoncarew @mit-mit in case this is something you want to look at from an IDE point of view.
Hixie commentedon May 8, 2018
Closing as covered by #13379
harshithadev commentedon Oct 3, 2020
I'm facing a similar issue
harshithadev commentedon Oct 3, 2020
Exception has occurred.
HttpException (HttpException: Connection closed before full header was received, uri = https://img.pngio.com/free-google-png-images-free-google-imagespng-transparent-images-google-search-png-900_660.png)
Im trying to add a image using the NetworkImage widget and this keeps poppin up
github-actions commentedon Aug 11, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.