title: It seems that pthread_join() is not invoked or PTHREAD_ATTR_FLAG_DETACHED is not set. Flutter
body: <p>I am working on flutter and trying to fetch details from an API using package <code>http/http.dart</code>. I am using <code>http.get(Uri.parse())</code> for getting data from the API.</p>
  <pre><code>I/flutter (27793): HandshakeException: Handshake error in client (OS Error:
  I/flutter (27793):  CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393))
  W/libc    (27793): It seems that pthread_join() is not invoked or PTHREAD_ATTR_FLAG_DETACHED is not set.
  W/libc    (27793):     pthread tid          : 7654
  W/libc    (27793):     pthread start_routine: 0x9eeaf8d9
  </code></pre>
  <p>I have found a similar question <a href="https://stackoverflow.com/questions/67952412/my-firebase-app-doesnt-work-fully-is-it-due-to-it-seems-that-pthread-join">here</a>.
  Though the question in link was regarding Firebase Authentication hence I made this question.</p>
  <p>I read <a href="https://www.ibm.com/docs/en/zos/2.3.0?topic=functions-pthread-join-wait-thread-end" rel="nofollow noreferrer">pthread_join() — Wait for a thread to end</a> but didn't understand how to resolve it in my code.</p>
  <p>I can't tell you <code>response.statusCode</code> due to above mentioned error.</p>
  <p>TIA</p>