Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - Unhandled Exception: HttpException: Unexpected response (unsolicited response without request) #80407

Open
Tracked by #130635
ghost opened this issue Apr 14, 2021 · 10 comments
Labels
c: crash Stack traces logged to the console dependency: dart:io Issue in 'dart:io' library dependency: dart Dart team may need to help us needs repro info Automated crash report whose cause isn't yet known team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@ghost
Copy link

ghost commented Apr 14, 2021

@shashank-gb commented on Apr 13, 2021, 6:48 AM UTC:

I'm having an issue while making an HTTP post request in order to send the data to My SQL via php as an API. http and dio packages both throws same error. Hence I think it's an error from dart:async.

ERROR

E/flutter (14533): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: HttpException: Unexpected response (unsolicited response without request).
E/flutter (14533): #0      new _HttpClientConnection.<anonymous closure> (dart:_http/http_impl.dart:1824:9)
E/flutter (14533): #1      _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (14533): #2      _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (14533): #3      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (14533): #4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (14533): #5      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter (14533): #6      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
E/flutter (14533): #7      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
E/flutter (14533): #8      _rootRun (dart:async/zone.dart:1346:47)
E/flutter (14533): #9      _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (14533): #10     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (14533): #11     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (14533): #12     _rootRun (dart:async/zone.dart:1354:13)
E/flutter (14533): #13     _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (14533): #14     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (14533): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (14533): #16     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter (14533): #17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

  • Using Dart SDK version: 2.12.1 (stable) (Wed Mar 10 10:18:47 2021 +0100) on "windows_x64"

Note : I am running this application in mobile device

This issue was moved by keertip from dart-lang/sdk#45668.

@TahaTesser
Copy link
Member

TahaTesser commented Apr 14, 2021

Hi @shashank-gb
The issue looks similar to #58325
Can you please try the fix mentioned in the issue?

If the problem persists, Can you please provide your flutter doctor -v with the upgrade, complete reproducible minimal code sample, and complete flutter run --verbose logs running the minimal code sample?
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 14, 2021
@shashank-gb
Copy link

shashank-gb commented Apr 14, 2021

@TahaTesser I tried as mentioned in #58325 , deleted .gradle folder and re-run the program. It recreates the .gradle folder but it didn't help in resolving issue.

Minimal Code

Future userRegistration() async {
    String name = nameController.text;
    String email = emailController.text;
    String password = passwordController.text;

    var url = Uri.parse('http://pro-connect.infinityfreeapp.com/register_user.php');

    var response = await http.post(url, body: {'name': name, 'email': email, 'password': password});

    var message = '${response.body}';

    print(message);
}

logs running code( it contains gesture log also while giving input )

logs
[  +72 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +228 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] executing: [C:\src\flutter/] git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[ +925 ms] Exit code 0 from: git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[   +1 ms] 2.0.2
[  +44 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +31 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +52 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[ +187 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +84 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[ +133 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +71 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +336 ms] List of devices attached
                    afc22e82               device product:RMX1992 model:RMX1992 device:RMX1992L1 transport_id:16
[  +71 ms] C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell getprop
[ +240 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +46 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +75 ms] Skipping pub get: version match.
[ +104 ms] Generating
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +172 ms] ro.hardware = qcom
[  +30 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +9 ms] complete
[   +4 ms] Launching lib\main.dart on RMX1992 in debug mode...
[   +4 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata --output-dill C:\Users\SHASHA~1\AppData\Local\Temp\flutter_tools.c7dee583\flutter_tool.f185de56\app.dill
--packages D:\projects\AndroidStudioProjects\flutter\reg_login_demo\.dart_tool\package_config.json -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\cache.dill.track.dill
[   +9 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\build-tools\30.0.1\aapt dump xmltree
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +211 ms] Exit code 0 from: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\build-tools\30.0.1\aapt dump xmltree
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.reg_login_demo" (Raw: "com.example.reg_login_demo")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="reg_login_demo" (Raw: "reg_login_demo")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:usesCleartextTraffic(0x010104ec)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.reg_login_demo.MainActivity" (Raw: "com.example.reg_login_demo.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=36)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=46)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=50)
                     E: action (line=51)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=53)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=60)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +7 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell -x logcat -v time -t 1
[   +6 ms] <- compile package:app/main.dart
[ +122 ms] --------- beginning of main
                    04-14 17:26:44.212 I/system_server( 1784): Background young concurrent copying GC freed 75034(6625KB) AllocSpace objects,
                    56(1120KB) LOS objects, 11% free, 60MB/68MB, paused 870us total 109.273ms
[ +293 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +32 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +123 ms] Building APK
[  +14 ms] Running Gradle task 'assembleDebug'...
[   +4 ms] Using gradle from D:\projects\AndroidStudioProjects\flutter\reg_login_demo\android\gradlew.bat.
[   +1 ms] D:\projects\AndroidStudioProjects\flutter\reg_login_demo\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +45 ms] executing: C:\Program Files (x86)\Android\Android Studio\jre\bin\java -version
[+4366 ms] Exit code 0 from: C:\Program Files (x86)\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
           OpenJDK 64-Bit Server VM (build 25.202-b03, mixed mode)
[   +1 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +339 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +3 ms] executing: [D:\projects\AndroidStudioProjects\flutter\reg_login_demo\android/]
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=D:\projects\AndroidStudioProjects\flutter\reg_login_demo\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+6774 ms] Welcome to Gradle 6.7!
[   +1 ms] Here are the highlights of this release:
[   +1 ms]  - File system watching is ready for production use
[        ]  - Declare the version of Java your build requires
[        ]  - Java 15 support
[        ] For more details see https://docs.gradle.org/6.7/release-notes.html
[+5704 ms] > Task :app:compileFlutterBuildDebug
[  +20 ms] [  +74 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [  +80 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[        ] [        ] executing: [C:\src\flutter/] git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[  +57 ms] [ +166 ms] Exit code 0 from: git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[   +1 ms] [        ] 2.0.2
[  +93 ms] [  +39 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] [  +45 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[   +1 ms] [        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[ +100 ms] [  +75 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[  +92 ms] [ +124 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +93 ms] [  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[  +28 ms] [        ] stable
[        ] [  +36 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +278 ms] [ +266 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +57 ms] Initializing file store
[        ] [  +12 ms] Skipping target: gen_localizations
[   +1 ms] [   +6 ms] kernel_snapshot: Starting due to {}
[  +78 ms] [  +10 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\.dart_tool\package_config.json --output-dill
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\.dart_tool\flutter_build\e95f553deb0e92a9f5f40a56cab5af41\app.dill --depfile
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\.dart_tool\flutter_build\e95f553deb0e92a9f5f40a56cab5af41\kernel_snapshot.d
package:app/main.dart
[+8404 ms] [+8409 ms] kernel_snapshot: Complete
[ +793 ms] [ +824 ms] debug_android_application: Starting due to {}
[+1209 ms] [+1188 ms] debug_android_application: Complete
[+1197 ms] [+1223 ms] Persisting file store
[  +93 ms] [  +93 ms] Done persisting file store
[ +701 ms] [ +673 ms] build succeeded.
[  +92 ms] [  +89 ms] "flutter assemble" took 12,849ms.
[   +1 ms] [   +4 ms] ensureAnalyticsSent: 0ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[   +1 ms] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +507 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ +793 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +199 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[  +92 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +90 ms] > Task :app:processDebugResources UP-TO-DATE
[ +107 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +1 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[  +92 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[ +105 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ +190 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ +108 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[   +1 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +91 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:compressDebugAssets
[+3604 ms] > Task :app:packageDebug
[ +190 ms] > Task :app:assembleDebug
[ +371 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[   +1 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[   +1 ms] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 31s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +788 ms] Running Gradle task 'assembleDebug'... (completed in 38.0s)
[+1601 ms] calculateSha: LocalDirectory: 'D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk'/app.apk
[  +38 ms] calculateSha: reading file took 36us
[ +645 ms] calculateSha: computing sha took 644us
[  +29 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[  +15 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\build-tools\30.0.1\aapt dump xmltree
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +301 ms] Exit code 0 from: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\build-tools\30.0.1\aapt dump xmltree
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.reg_login_demo" (Raw: "com.example.reg_login_demo")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="reg_login_demo" (Raw: "reg_login_demo")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:usesCleartextTraffic(0x010104ec)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.reg_login_demo.MainActivity" (Raw: "com.example.reg_login_demo.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=36)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=46)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=50)
                     E: action (line=51)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=53)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=60)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +4 ms] Stopping app 'app.apk' on RMX1992.
[   +1 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell am force-stop
com.example.reg_login_demo
[ +164 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell pm list packages
com.example.reg_login_demo
[ +608 ms] package:com.example.reg_login_demo
[   +3 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell cat
/data/local/tmp/sky.com.example.reg_login_demo.sha1
[  +92 ms] 79138e3151d4e58f56538e46ed020e755fb211e3
[   +1 ms] Installing APK.
[  +25 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +1 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 install -t -r
D:\projects\AndroidStudioProjects\flutter\reg_login_demo\build\app\outputs\flutter-apk\app.apk
[+6776 ms] Performing Streamed Install
                    Success
[   +3 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 6.8s)
[   +1 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell echo -n
8657f2ae37fa31d4291789e3ebed185222e8223a > /data/local/tmp/sky.com.example.reg_login_demo.sha1
[  +66 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell -x logcat -v time -t 1
[ +207 ms] --------- beginning of main
                    04-14 17:27:34.797 I/hwservicemanager(  522): getTransport: Cannot find entry
                    vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest.
[   +5 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true
--ez verify-entry-points true com.example.reg_login_demo/com.example.reg_login_demo.MainActivity
[ +225 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.reg_login_demo/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+2181 ms] Observatory URL on device: http://127.0.0.1:40981/UN8CdL-GW4A=/
[   +2 ms] executing: C:\Users\SHASHANKgb\AppData\Local\Android\sdk\platform-tools\adb.exe -s afc22e82 forward tcp:0 tcp:40981
[  +21 ms] 57873
[        ] Forwarded host port 57873 to device port 40981 for Observatory
[   +4 ms] Caching compiled dill
[  +28 ms] Connecting to service protocol: http://127.0.0.1:57873/UN8CdL-GW4A=/
[ +365 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:57873/UN8CdL-GW4A=/.
[ +701 ms] DDS is listening at http://127.0.0.1:57878/aRvDHg6GKLk=/.
[  +55 ms] Successfully connected to service protocol: http://127.0.0.1:57873/UN8CdL-GW4A=/
[+1045 ms] DevFS: Creating new filesystem on the device (null)
[  +41 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.reg_login_demo/code_cache/reg_login_demoZYMYKU/reg_login_demo/)
[   +4 ms] Updating assets
[  +62 ms] Syncing files to device RMX1992...
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:app/main.dart c8007c67-9b23-4016-bb03-d4faceababe6
[        ] <- c8007c67-9b23-4016-bb03-d4faceababe6
[ +161 ms] Updating files.
[   +1 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device RMX1992... (completed in 168ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[  +30 ms] Connected to _flutterView/0x7ec0eba820.
[   +2 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on RMX1992 is available at: http://127.0.0.1:57878/aRvDHg6GKLk=/
[        ]
           Flutter DevTools, a Flutter debugger and profiler, on RMX1992 is available at:
           http://127.0.0.1:57883?uri=http%3A%2F%2F127.0.0.1%3A57878%2FaRvDHg6GKLk%3D%2F
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[+1027 ms] I/.reg_login_dem(15763): ProcessProfilingInfo new_methods=3 is saved saved_to_disk=1 resolve_classes_delay=5000
[+12920 ms] D/ColorViewRootUtil(15763): nav gesture mode swipeFromBottom ignore false downY 494 mScreenHeight 2340 mScreenWidth 1080
mStatusBarHeight 54 globalScale 1.3235294 nav mode 3 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=316.0, y[0]=494.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0,
eventTime=155035379, downTime=155035379, deviceId=4, source=0x1002, displayId=0 } rotation 0
[ +219 ms] I/Choreographer(15763): Skipped 1 frames!  The application may be doing too much work on its main thread.
[   +4 ms] W/IInputConnectionWrapper(15763): getTextBeforeCursor on inactive InputConnection
[   +4 ms] W/IInputConnectionWrapper(15763): getSelectedText on inactive InputConnection
[   +1 ms] W/IInputConnectionWrapper(15763): getTextAfterCursor on inactive InputConnection
[   +4 ms] W/IInputConnectionWrapper(15763): beginBatchEdit on inactive InputConnection
[        ] W/IInputConnectionWrapper(15763): endBatchEdit on inactive InputConnection
[+10972 ms] I/.reg_login_dem(15763): ProcessProfilingInfo new_methods=15 is saved saved_to_disk=1 resolve_classes_delay=5000
[+3067 ms] D/ColorViewRootUtil(15763): nav gesture mode swipeFromBottom ignore false downY 647 mScreenHeight 2340 mScreenWidth 1080
mStatusBarHeight 54 globalScale 1.3235294 nav mode 3 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=526.0, y[0]=647.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0,
eventTime=155049699, downTime=155049699, deviceId=4, source=0x1002, displayId=0 } rotation 0
[  +88 ms] W/IInputConnectionWrapper(15763): getTextBeforeCursor on inactive InputConnection
[   +1 ms] W/IInputConnectionWrapper(15763): getSelectedText on inactive InputConnection
[   +1 ms] W/IInputConnectionWrapper(15763): getTextAfterCursor on inactive InputConnection
[+4372 ms] D/ColorViewRootUtil(15763): nav gesture mode swipeFromBottom ignore false downY 856 mScreenHeight 2340 mScreenWidth 1080
mStatusBarHeight 54 globalScale 1.3235294 nav mode 3 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=664.0, y[0]=856.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0,
eventTime=155054167, downTime=155054167, deviceId=4, source=0x1002, displayId=0 } rotation 0
[+1566 ms] D/ColorViewRootUtil(15763): nav gesture mode swipeFromBottom ignore false downY 849 mScreenHeight 2340 mScreenWidth 1080
mStatusBarHeight 54 globalScale 1.3235294 nav mode 3 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=599.0, y[0]=849.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0,
eventTime=155055738, downTime=155055738, deviceId=4, source=0x1002, displayId=0 } rotation 0
[+2798 ms] D/ColorViewRootUtil(15763): nav gesture mode swipeFromBottom ignore false downY 963 mScreenHeight 2340 mScreenWidth 1080
mStatusBarHeight 54 globalScale 1.3235294 nav mode 3 event MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=662.0, y[0]=963.0,
toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0,
eventTime=155058531, downTime=155058531, deviceId=4, source=0x1002, displayId=0 } rotation 0

[+1068 ms] E/flutter (15763): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: HttpException: Unexpected response (unsolicited
response without request).
[   +1 ms] E/flutter (15763): #0      new _HttpClientConnection.<anonymous closure> (dart:_http/http_impl.dart:1824:9)
[        ] E/flutter (15763): #1      _rootRunUnary (dart:async/zone.dart:1362:47)
[        ] E/flutter (15763): #2      _CustomZone.runUnary (dart:async/zone.dart:1265:19)
[        ] E/flutter (15763): #3      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
[        ] E/flutter (15763): #4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
[        ] E/flutter (15763): #5      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
[        ] E/flutter (15763): #6      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
[        ] E/flutter (15763): #7      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
[        ] E/flutter (15763): #8      _rootRun (dart:async/zone.dart:1346:47)
[        ] E/flutter (15763): #9      _CustomZone.run (dart:async/zone.dart:1258:19)
[        ] E/flutter (15763): #10     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
[        ] E/flutter (15763): #11     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
[        ] E/flutter (15763): #12     _rootRun (dart:async/zone.dart:1354:13)
[        ] E/flutter (15763): #13     _CustomZone.run (dart:async/zone.dart:1258:19)
[        ] E/flutter (15763): #14     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
[        ] E/flutter (15763): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
[        ] E/flutter (15763): #16     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
[        ] E/flutter (15763): #17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
[        ] E/flutter (15763): 
[        ] I/flutter (15763): <html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var
e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var
d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);
return e.toLowerCase()}var
a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("67bda27a8935a16e9ba55aa94082280b");d
ocument.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
location.href="http://pro-connect.infinityfreeapp.com/register_user.php?i=1";</script><noscript>This site requires Javascript to work, please
enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>
[ +305 ms]

flutter doctor -v

flutter doctor -v
[√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19042.746], locale en-IN)
    • Flutter version 2.0.2 at C:\src\flutter
    • Framework revision 8962f6dc68 (5 weeks ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\SHASHANKgb\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files (x86)\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\SHASHANKgb\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • RMX1992 (mobile) • afc22e82 • android-arm64  • Android 10 (API 29)
    • Chrome (web)     • chrome   • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)       • edge     • web-javascript • Microsoft Edge 89.0.774.63

• No issues found!

@shashank-gb
Copy link

shashank-gb commented Apr 16, 2021

@TahaTesser Am I posted right in upper section? I confused because of it's length. If I am wrong Please guide me.

@TahaTesser TahaTesser removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 20, 2021
@TahaTesser
Copy link
Member

Hi @shashank-gb
Can you please upgrade to the latest stable and try again
flutter channel stable
flutter upgrade --force
flutter doctor -v

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 20, 2021
@shashank-gb
Copy link

I upgraded to latest version as you said to flutter 2.0.5 But still the same error continues. Here is my flutter doctor log

flutter doctor -v

[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.746], locale en-IN)
    • Flutter version 2.0.5 at C:\src\flutter
    • Framework revision adc687823a (4 days ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\SHASHANKgb\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files (x86)\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\SHASHANKgb\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • RMX1992 (mobile) • afc22e82 • android-arm64  • Android 10 (API 29)
    • Chrome (web)     • chrome   • web-javascript • Google Chrome 90.0.4430.72
    • Edge (web)       • edge     • web-javascript • Microsoft Edge 89.0.774.63

• No issues found!

ERROR

[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: HttpException: Unexpected response (unsolicited response without request).
E/flutter (13828): #0      new _HttpClientConnection.<anonymous closure> (dart:_http/http_impl.dart:1824:9)
E/flutter (13828): #1      _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (13828): #2      _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (13828): #3      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (13828): #4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (13828): #5      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter (13828): #6      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
E/flutter (13828): #7      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
E/flutter (13828): #8      _rootRun (dart:async/zone.dart:1346:47)
E/flutter (13828): #9      _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (13828): #10     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (13828): #11     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (13828): #12     _rootRun (dart:async/zone.dart:1354:13)
E/flutter (13828): #13     _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (13828): #14     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (13828): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (13828): #16     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter (13828): #17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
E/flutter (13828): 

and this error is coming from await http.post() method but it doesn't belongs http package because dio package also throws same error.

@TahaTesser TahaTesser removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 21, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Apr 21, 2021

Hi @shashank-gb
Can you please file the issue on http instead https://github.com/dart-lang/http/issues
http isn't part of Flutter
If you disagree, please write in the comments,
providing your flutter doctor -v, your flutter run -v, your pubspec.yaml, a minimal reproducible code sample that does not use 3rd party plugins, your complete flutter run -v logs running the minimal code sample
and I will reopen it.
Thank you

@TahaTesser TahaTesser added r: invalid Issue is closed as not valid and removed in triage Presently being triaged by the triage team labels Apr 21, 2021
@shashank-gb
Copy link

shashank-gb commented Apr 21, 2021

@TahaTesser I am clearly mentioning sir, It's not an issue from http package. So please re open this issue and try to solve this issue. Otherwise not able to post request from mobile application. I think this issue is getting after flutter 2 (not sure).

  • All logs are mentioned in the upper comments section.

pubsec.yaml file

name: app
description: A new Flutter project.

version: 1.0.0+1

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  http: ^0.13.1
  dio: ^4.0.0

  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

  uses-material-design: true

Piece of code without third party plugin

Future userRegistration() async {
    String name = nameController.text;
    String email = emailController.text;
    String password = passwordController.text;
    var data = {'name': name, 'email': email, 'password': password};

    var url = Uri.parse('http://pro-connect.infinityfreeapp.com/register_user.php');

    final client = HttpClient();
    final request = await client.postUrl(url);
    request.headers.set(HttpHeaders.contentTypeHeader, "application/json; charset=UTF-8");
    request.write(data);

    final response = await request.close();

    response.transform(utf8.decoder).listen((contents) {
      print(contents);
    });
}

And same error continues as mentioned in upper section.

@TahaTesser
Copy link
Member

@shashank-gb
You've filed an issue in sdk not in http
dio uses the same method as http from dart.

I could be mistaken, since #58325 looks similar and it is labelled for the tool team

@TahaTesser TahaTesser reopened this Apr 22, 2021
@TahaTesser TahaTesser added dependency: dart Dart team may need to help us passed first triage c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels. and removed r: invalid Issue is closed as not valid labels Apr 22, 2021
@shashank-gb
Copy link

@TahaTesser I appreciate your reply sir but I am not getting any solution regarding issue. I am trying to build an app and application will implement a post request so without HttpClient() we can't do it. Please take it consider as highly required and try to solve as soon as possible
or else
Please give a temporary solution to overcome from this issue.

@a-siva a-siva added the dependency: dart:io Issue in 'dart:io' library label Jun 15, 2021
@flutter-triage-bot flutter-triage-bot bot added the team-tool Owned by Flutter Tool team label Jul 8, 2023
@brianquinlan
Copy link
Contributor

Hi @shashank-gb,

Is this still an issue for you? If so could you:

  1. try your code using flutter 3.16?
  2. create a minimal code same that we can run to reproduce the problem?

Thanks!

@brianquinlan brianquinlan added the needs repro info Automated crash report whose cause isn't yet known label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: crash Stack traces logged to the console dependency: dart:io Issue in 'dart:io' library dependency: dart Dart team may need to help us needs repro info Automated crash report whose cause isn't yet known team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

5 participants