We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dio
5.7.0
Android, iOS
Default Dio
flutter doctor -v
No response
3.5.0
import 'package:dio/dio.dart';
void main() async { Dio dio = Dio();
// 创建多个请求的Future列表 List<Future> futures = [];
// 添加请求到futures列表 for (int i = 0; i < 10; i++) { futures.add(dio.get('https://api.example.com/data$i')); }
// 使用Future.wait并发执行所有请求 try { List responses = await Future.wait(futures); // 处理所有响应 for (Response response in responses) { print(response.data); } } catch (e) { print(e); } }
no erro
SocketException: Failed host lookup: 'xxx.com' (OS Error: nodename nor servname provided, or not known, errno = 7)
The text was updated successfully, but these errors were encountered:
与库无关,检查网络权限及网络状况。
Sorry, something went wrong.
No branches or pull requests
Package
dio
Version
5.7.0
Operating-System
Android, iOS
Adapter
Default Dio
Output of
flutter doctor -v
No response
Dart Version
3.5.0
Steps to Reproduce
import 'package:dio/dio.dart';
void main() async {
Dio dio = Dio();
// 创建多个请求的Future列表
List<Future> futures = [];
// 添加请求到futures列表
for (int i = 0; i < 10; i++) {
futures.add(dio.get('https://api.example.com/data$i'));
}
// 使用Future.wait并发执行所有请求
try {
List responses = await Future.wait(futures);
// 处理所有响应
for (Response response in responses) {
print(response.data);
}
} catch (e) {
print(e);
}
}
Expected Result
no erro
Actual Result
SocketException: Failed host lookup: 'xxx.com' (OS Error: nodename nor servname provided, or not known, errno = 7)
The text was updated successfully, but these errors were encountered: