我刚刚尝试了 Flutter 的 appwrite 平台,但这发生在我尝试过任何请求之后。
服务器初始化为http://localhost:300(或https://localhost:301),endpoint = http://localhost:300/v1
static Future<void> init() async {
_client = Client();
_client.setEndpoint("http://localhost:300/v1").setProject('5fccf1924cbf5').setSelfSigned();
_db = Database(_client);
}
E/flutter (28886): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 47194
E/flutter (28886): #0 DioMixin._request._errorInterceptorWrapper.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:dio/src/dio.dart:870:17)
目前仅在 Android(物理设备)上尝试过。