title: HandshakeException: Handshake error in client (OS Error: I/flutter ( 9113): CERTIFICATE_VERIFY_FAILED: Hostname mismatch(handshake.cc:359))
body: <p>Connection code</p>
  <p>till yesterday everything working properly but now it giving the error to connect the json data.
  ...........................................................................................................................................................................................</p>
  <pre><code>class ProductDataStacture with ChangeNotifier {
    List&lt;Products&gt; _products = [];
    List&lt;Banners&gt; _banners = [];
    List&lt;Categories&gt; _category = [];
    List&lt;Random&gt; _random = [];
  
    Future&lt;bool&gt; getProducts() async {
      String url = 'https://shymee.com';
  
      try {
        // http.Response response = await http.get(Uri.parse(url + &quot;/home&quot;),
        var response = await http.get(Uri.parse(url + &quot;/home&quot;), headers: {
          'Authorization': 'token a867c3c092e8b1195f398ed5ca52dda4e5ff5ed8'
        });
        var data = json.decode(response.body);
        print(data);
        List&lt;Products&gt; prod = [];
        List&lt;Banners&gt; bann = [];
        List&lt;Categories&gt; cate = [];
        List&lt;Random&gt; ran = [];
        data['products'].forEach((element) {
          Products product = Products.fromJson(element);
          prod.add(product);
          print(&quot;this is product ${product}&quot;);
        });
        data['banners'].forEach((element) {
          Banners banner = Banners.fromJson(element);
          bann.add(banner);
        });
        data['categories'].forEach((element) {
          Categories category = Categories.fromJson(element);
          cate.add(category);
        });
        data['random'].forEach((element) {
          Random random = Random.fromJson(element);
          ran.add(random);
        });
        _products = prod;
        _banners = bann;
        _category = cate;
        _random = ran;
        return true;
      } catch (e) {
        print(&quot;e getProducts&quot;);
        print(e);
        return false;
      }
    }
  
    List&lt;Products&gt; get productsList {
      return [..._products];
    }
  
    List&lt;Banners&gt; get bannersList {
      return [..._banners];
    }
  
    List&lt;Categories&gt; get categoryList {
      return [..._category];
    }
  
    List&lt;Random&gt; get randomList {
      return [..._random];
    }
  }
  </code></pre>