-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consoledependency: dartDart team may need to help usDart team may need to help usdependency: dart:ioIssue in 'dart:io' libraryIssue in 'dart:io' libraryengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.24Found to occur in 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to Reproduce
execute following line:
final response = await http.get("https://api-sandbox.rabobank.nl/openapi/sandbox/payments/account-information/ais/v3/accounts");
The same call works using URLSession and postman but when using the http flutter package it crashes.
output
Performing hot restart...
Syncing files to device iPhone van Guus...
Restarted application in 1,089ms.
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: Connection closed before full header was received
#0 IOClient.send (package:http/src/io_client.dart:65:7)
<asynchronous suspension>
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:169:38)
<asynchronous suspension>
#2 BaseClient.get (package:http/src/base_client.dart:32:7)
#3 get.<anonymous closure> (package:http/http.dart:46:36)
#4 _withClient (package:http/http.dart:166:20)
<asynchronous suspension>
#5 get (package:http/http.dart:46:5)
#6 example (package:back_animation_ios/main.dart:12:26)
<asynchronous suspension>
#7 main (package:back_animation_ios/main.dart:8:2)
#8 _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:231:25)
#9 _rootRun (dart:async/zone.dart:1124:13)
#10 _CustomZone.run (dart:async/zone.dart:1021:19)
#11 _runZoned (dart:async/zone.dart:1516:10)
#12 runZoned (dart:async/zone.dart:1500:12)
#13 _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:223:5)
#14 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:19)
#15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
example application
void main() {
example();
}
void example() async {
final response = await http.get("https://api-sandbox.rabobank.nl/openapi/sandbox/payments/account-information/ais/v3/accounts");
print(response.body);
}
flutter analyze
Analyzing back_animation_ios...
No issues found! (ran in 1.5s)
flutter doctor
[✓] Flutter (Channel master, v1.10.7-pre.73, on Mac OS X 10.14.6 18G95, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)
verbose
[ +15 ms] executing: [/Users/guusiwanow/Developer/installations/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +25 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 67b5bdf99b19e5f04bae5fb82af91aa695fbfbb9
[ ] executing: [/Users/guusiwanow/Developer/installations/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +21 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.10.6-73-g67b5bdf99
[ +6 ms] executing: [/Users/guusiwanow/Developer/installations/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [/Users/guusiwanow/Developer/installations/flutter/] git ls-remote --get-url origin
[ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +46 ms] executing: [/Users/guusiwanow/Developer/installations/flutter/] git rev-parse --abbrev-ref HEAD
[ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +4 ms] executing: sw_vers -productName
[ +13 ms] Exit code 0 from: sw_vers -productName
[ ] Mac OS X
[ ] executing: sw_vers -productVersion
[ +14 ms] Exit code 0 from: sw_vers -productVersion
[ ] 10.14.6
[ ] executing: sw_vers -buildVersion
[ +14 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 18G95
[ +12 ms] executing: /usr/bin/xcode-select --print-path
[ +11 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[ ] /Applications/Xcode.app/Contents/Developer
[ ] executing: /usr/bin/xcodebuild -version
[ +92 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[ ] Xcode 10.3
Build version 10G8
[ +46 ms] executing: /Users/guusiwanow/Library/Android/sdk/platform-tools/adb devices -l
[ +5 ms] Exit code 0 from: /Users/guusiwanow/Library/Android/sdk/platform-tools/adb devices -l
[ ] List of devices attached
[ +9 ms] executing: /Users/guusiwanow/Developer/installations/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h
[ +181 ms] /usr/bin/xcrun simctl list --json devices
[ +174 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
[ +4 ms] iPhone van Guus • 00008020-000038423650003A • ios • iOS 12.4.1
[ ] iPhone Xʀ • 48D7954D-68A0-43CC-89F0-C04010341FA6 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
[ +8 ms] "flutter run" took 605ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:276:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:510:11)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:452:33)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#5 _rootRun (dart:async/zone.dart:1124:13)
#6 _CustomZone.run (dart:async/zone.dart:1021:19)
#7 _runZoned (dart:async/zone.dart:1516:10)
#8 runZoned (dart:async/zone.dart:1463:12)
#9 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:442:20)
#11 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:416:21)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _runZoned (dart:async/zone.dart:1516:10)
#17 runZoned (dart:async/zone.dart:1463:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:367:19)
<asynchronous suspension>
#20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21 new Future.sync (dart:async/future.dart:224:31)
#22 CommandRunner.run (package:args/command_runner.dart:112:14)
#23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:251:18)
#24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
<asynchronous suspension>
#25 _rootRun (dart:async/zone.dart:1124:13)
#26 _CustomZone.run (dart:async/zone.dart:1021:19)
#27 _runZoned (dart:async/zone.dart:1516:10)
#28 runZoned (dart:async/zone.dart:1500:12)
#29 run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#30 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:157:29)
<asynchronous suspension>
#31 _rootRun (dart:async/zone.dart:1124:13)
#32 _CustomZone.run (dart:async/zone.dart:1021:19)
#33 _runZoned (dart:async/zone.dart:1516:10)
#34 runZoned (dart:async/zone.dart:1463:12)
#35 AppContext.run (package:flutter_tools/src/base/context.dart:156:18)
<asynchronous suspension>
#36 runInContext (package:flutter_tools/src/context_runner.dart:63:24)
<asynchronous suspension>
#37 run (package:flutter_tools/runner.dart:50:10)
#38 main (package:flutter_tools/executable.dart:65:9)
<asynchronous suspension>
#39 main (file:///Users/guusiwanow/Developer/installations/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
mmeyer-civic, hisaichi5518, susesKaninchen, gabcarneiro, huyun0-0 and 57 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consoledependency: dartDart team may need to help usDart team may need to help usdependency: dart:ioIssue in 'dart:io' libraryIssue in 'dart:io' libraryengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.24Found to occur in 1.24Found to occur in 1.24has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version