-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Closed
Description
Steps to Reproduce
final http.Client _client = http.Client();
String json = await _client.read('https://v2.api.dailypics.cn/today', headers: _kHeaders);
Target Platform: macOS 10.14
Logs
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = v2.api.dailypics.cn, port = 443
#0 IOClient.send (package:http/src/io_client.dart:33:23)
<asynchronous suspension>
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:169:38)
#2 BaseClient.get (package:http/src/base_client.dart:32:7)
#3 BaseClient.read (package:http/src/base_client.dart:117:12)
#4 TujianApi.getToday (package:dailypics/utils/api.dart:51:35)
#5 _TodayComponentState._fetchData (package:dailypics/components/today.dart:142:42)
#6 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:47:6)
#7 _TodayComponentState._fetchData (package:dailypics/components/today.dart:140:26)
#8 _TodayComponentState.initState (package:dailypics/components/today.dart:39:5)
#9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4428:58)
#10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4274:5)
// ...
[✓] Flutter (Channel master, v1.13.6-pre.14, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[!] Android Studio (not installed)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
r100-stack, YukunXia, sukkla01 and PiN73r100-stack and sukkla01
Metadata
Metadata
Assignees
Labels
No labels