我遇到无法使用此消息HTTP异常1059的问题。每次,我都尝试使用手机运行该应用程序。我收到此错误,但如果使用模拟器,则不会出现此问题。尝试在手机上运行该应用程序时,热重载和热重启无法正常工作。
我尝试用NO_PROXY=localhost,127.0.0.1; flutter run
进行修复
并没有删除错误消息。
NO_PROXY=localhost,127.0.0.1; flutter run --start-paused
此外,这并未删除邮件。
flutter run -v gave me this
+16 ms] Connecting to service protocol: <i>http://127.0.0.1:1059/
[ +43 ms] Error connecting to the service protocol: HttpException: , uri =
http://127.0.0.1:1059/ws
[ +4 ms] "flutter run" took 49,513ms.
[ ] "flutter run" took 49,513ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:24:3)
#1 RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:427:7)
#2 FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:559:18)
#3 _asyncThenWrapperHelper.
(dart:async-patch/async_patch.dart:77:64)
#4 _rootRunUnary (dart:async/zone.dart:1132:38)
#5 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#6 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#7 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:639:45)
#8 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#9 Future._complete (dart:async/future_impl.dart:473:7)
#10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#11 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:28:18)
#12 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
#13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#14 _asyncThenWrapperHelper.
(dart:async-patch/async_patch.dart:77:64)
#15 _rootRunUnary (dart:async/zone.dart:1132:38)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#18 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:639:45)
#19 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#20 Future._complete (dart:async/future_impl.dart:473:7)
#21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22 _AsyncAwaitCompleter.complete.
(dart:async-patch/async_patch.dart:33:20)
#23 _rootRun (dart:async/zone.dart:1124:13)
#24 _CustomZone.run (dart:async/zone.dart:1021:19)
#25 _CustomZone.bindCallback.
(dart:async/zone.dart:947:23)
#26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:115:13)
#29 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:172:5)
Second Error same one:
NO_PROXY=localhost,127.0.0.1; flutter run --start-paused
Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: M6E2BGCTT7
Running Xcode build...
├─Assembling Flutter resources... 3.6s
└─Compiling, linking and signing... 4.6s
Xcode build done. 11.1s
5.20.0 - [Firebase/Analytics][I-ACS023007] Analytics v.50801000 started
5.20.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see
Installing and launching... 22.4s
Error connecting to the service protocol: HttpException: , uri =
http://127.0.0.1:1057/ws
The result suppose to be like this:
Zuhairs-MacBook-Pro:open311_s zuhairhallak$ flutter run
Launching lib/main.dart on iPhone X in debug mode...
Running Xcode build...
├─Assembling Flutter resources... 2.4s
└─Compiling, linking and signing... 11.9s
Xcode build done. 50.4s
5.20.0 - [Firebase/Analytics][I-ACS023007] Analytics v.50801000 started
5.20.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled
[C1.1 D42C06A8-DE62-4330-A766-E0CB5A2D4E9D 192.168.1.25:50294<->172.217.12.170:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 1.165s, DNS @0.003s took 0.029s, TCP @0.035s took 0.048s, TLS took 0.269s
bytes in/out: 4833/1074, packets in/out: 9/9, rtt: 0.047s, retransmitted packets: 0, out-of-order packets: 0
Syncing files to device iPhone X...
3,908ms (!)
To hot reload changes while running, press "r". To hot restart (and rebuild
state), press "R".
An Observatory debugger and profiler on iPhone X is available at:
http://127.0.0.1:50292/
For a more detailed help message, press "h". To detach, press "d"; to quit,
press "q".
[C2.1 CB4F6FC0-2567-4A46-BA97-D03BD3F111B7 192.168.1.25:50314<->172.217.7.14:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.305s, DNS @0.001s took 0.001s, TCP @0.004s took 0.039s, TLS took 0.144s
bytes in/out: 3642/790, packets in/out: 9/8, rtt: 0.037s, retransmitted packets: 0, out-of-order packets: 0
[C3.1 7537AB6D-2040-484D-9504-A5B297FD7B3A 192.168.1.25:50316<->172.217.7.14:443]
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.215s, DNS @0.001s took 0.002s, TCP @0.004s took 0.038s, TLS took 0.115s
bytes in/out: 3549/1173, packets in/out: 8/8, rtt: 0.037s, retransmitted packets: 0, out-of-order packets: 0