-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
upstream in dart / flutterNeeds changing in Dart or FlutterNeeds changing in Dart or Flutter
Description
Describe the bug
I am unable to inspect variables. Only see "<function errorString(error) {>"
To Reproduce
The method that is causing the issue is here:
dynamic sendRequest(String remoteFileName, String method, XFile file, int length) async {
final uri = Uri(path: baseURL + '/' + nameOfZone + '/' + Uri.encodeFull(remoteFileName));
final req = http.MultipartRequest(method, uri);
var s = await file.readAsBytes();
String baseName = basename(file.path);
final multipartFile = http.MultipartFile('picture', http.ByteStream.fromBytes(s), length, filename: baseName);
req.files.add(multipartFile);
req.fields['User-Agent'] = 'Java-BCDN-Client-' + version;
req.fields['AccessKey'] = apiKey;
req.fields['Content-Type'] = 'application/octet-stream';
switch (method) {
case "PUT":
final res = await req.send();
await for (var value in res.stream.transform(utf8.decoder)) {
debugPrint(value);
}
break;
}
}Expected behavior
I should be able to inspect the variables
Versions (please complete the following information):
[✓] Flutter (Channel stable, 2.10.1, on macOS 12.1 21C52 darwin-arm, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.64.2)
Metadata
Metadata
Assignees
Labels
upstream in dart / flutterNeeds changing in Dart or FlutterNeeds changing in Dart or Flutter
