When start debugging on my iPhone (connected to the computer through USB), I regularly get this error message:
Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:1041/5cHcFx711Kk=/ws
The error message shows up when running
flutter run or with the debugging tool of VS code.
> edwin$ flutter run > Launching lib/main.dart on Wenchao Liu’s iPhone in debug mode... > Automatically signing iOS for device deployment using specified development team in Xcode project: 3S867Y73K3 > Running Xcode build... > > ├─Assembling Flutter resources... 6.8s > └─Compiling, linking and signing... 4.6s > Xcode build done. 74.4s > Configuring the default Firebase app... > 6.8.1 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist. > Configured the default Firebase app __FIRAPP_DEFAULT. > 6.8.1 - [Firebase/Analytics][I-ACS023007] Analytics v.60101000 started > 6.8.1 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) > Installing and launching... 15.7s > Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:1041/5cHcFx711Kk=/ws
Despite the error, the app starts like normal, only the debugger stopped working (hot reloading too).
I have identified that this issue is wifi-related. To be clear, I did not attempt wireless debugging and the phone and desktop are always connected through the same USB cable. I tested under the following scenarios:
Could not update files on device: HttpException: , uri = http://127.0.0.1:1033/CX2EYMGiynw=/
Unplugging and replugging the phone sometimes (not always) solve the problem for a short period of time.
I upgraded to
1.12.13+hotfix.7 and this is still an issue