title: From Last day get error in dio client in flutter
body: <p>I called api request and it worked fine, i used dio client and get data properly. but since last day it dosen't work!. i tried to solve this problem. it shows thousand of line in Logcat. but what is the actual problem? any solution?</p>
  <p><a href="https://i.stack.imgur.com/oaBxl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaBxl.png" alt="this is the problem that shows in emulator" /></a></p>
  <p><strong>This is dio api response</strong></p>
  <pre><code>Future&lt;List&lt;ListAlbum&gt;&gt; listData() async {
    SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
    final token = sharedPreferences.getString(&quot;token&quot;);
    String url =
        'https://portal-api.jomakhata.com/api/getOrganizationData?token=${token}';
    Dio dio = new Dio();
    dio.options.headers['Content-Type'] = 'application/json';
    final body = {'limit': 10, 'orderBy': 'idEmployee', 'orderType': 'DESC'};
    final response = await dio.post(url, data: body);
  
    if (response.statusCode == 200) {
      print(response.statusCode);
      print(response.data);
      return response.data[&quot;data&quot;][&quot;data&quot;]
          .map&lt;ListAlbum&gt;((json) =&gt; ListAlbum.fromJson(json))
          .toList();
    } else {
      throw Exception('Failed!');
    }
  }
  </code></pre>
  <p><strong>Full Code here</strong></p>
  <pre><code>class OrganizationList extends StatefulWidget {
    const OrganizationList({Key? key}) : super(key: key);
  
    @override
    _OrganizationListState createState() =&gt; _OrganizationListState();
  }
  
  class _OrganizationListState extends State&lt;OrganizationList&gt; {
    late Future&lt;List&lt;ListAlbum&gt;&gt; futureAlbum;
  
    @override
    void initState() {
      super.initState();
      futureAlbum = listData();
    }
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: FutureBuilder&lt;List&lt;ListAlbum&gt;&gt;(
            future: futureAlbum,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                print(snapshot.data);
                return ListView.builder(
                  itemCount: snapshot.data!.length,
                  itemBuilder: (context, index) {
                    final ListAlbum item = snapshot.data![index];
                    return ListTile(
                      leading: Text(item.idEmployee!.toString()),
                      title: Text(item.fullName!),
                      subtitle: Text(item.officeID!),
                      trailing: Text(item.designation!),
                      onTap: () {
                        Navigator.push(
                          context, MaterialPageRoute(
                              builder: (BuildContext context) =&gt; DetailsListOrganizationData()),
                        );
                      },
                    );
                  },
                );
              } else if (snapshot.hasError) {
                return Text('${snapshot.hasError}');
              }
              return const CircularProgressIndicator();
            },
          ),
        ),
      );
    }
  }
  
  class ListAlbum {
    final int? idEmployee;
    final String? avatar;
    final String? fullName;
    final String? officeID;
    final String? email;
    final String? designation;
    final String? department;
    final String? mobileNumber;
    final String? workStation;
    final String? businessUnit;
  
    ListAlbum({
      this.idEmployee,
      this.avatar,
      this.fullName,
      this.officeID,
      this.email,
      this.designation,
      this.department,
      this.mobileNumber,
      this.workStation,
      this.businessUnit,
    });
  
    factory ListAlbum.fromJson(Map&lt;String, dynamic&gt; json) {
      return ListAlbum(
        idEmployee: json['idEmployee'],
        avatar: json['avatar'],
        fullName: json['fullName'],
        officeID: json['officeID'],
        email: json['email'],
        designation: json['designation'],
        department: json['department'],
        mobileNumber: json['mobileNumber'],
        workStation: json['workStation'],
        businessUnit: json['businessUnit'],
      );
    }
  }
  </code></pre>
  <p>so, i think dio client have some problem. but not sure!</p>