flutter - SocketException: Connection failed (OS Error: Too many open files, errno = 24),
问题描述
我正在使用颤振。并且previoulis 我的代码现在工作得很好。当我调试时出现错误:发生异常。SocketException (SocketException: Connection failed (OS Error: Too many open files, errno = 24), address = 192.168.8.102, port = 8080)。我的代码
http.Response response = await http.get(
Config.serverAddress + "/**/***/getByPhone?phone=" + phone+"&key="+Config.key,
headers: Config.userHeader);
if (response.statusCode == 200) {
List result = jsonDecode(response.body) as List;
Config.goodConnection = 1;
return result;
}
Config.goodConnection = 0;
return [];
} ```
Complete error
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/NtpB4.png
解决方案
推荐阅读
- r - Rshiny 应用程序不显示情节,只是空占位符
- python - 当我执行 HttpResponseRedirect (302) 时,Django 登录 POST 挂起
- jekyll - 为什么我的 Jekyll 液体“加入”标签不能正常工作?
- javascript - 如何将对 localforage 数据库的访问限制为域下的特定路径?
- powerbi - 直接查询和汇总解决方法
- c# - Xamarin Forms - GestureRecognizers 不再在 iOS 中工作
- html - HTML/CSS 移动布局不响应
- java - 避免未命名的 lambda 参数
- typescript - 打字稿:类型化接口不允许来自其类型字符串字面量的值
- angular - Angular CLI 9 (Ivy) App build with local library (mono-repo) 失败