Back

[SOLVED] HandshakeException on some devices

  • 0
  • Self Hosted
  • Flutter
Victor1337
18 Sep, 2023, 14:59

Appwrite version 1.3.7. On the very first api the login. We get the error. This only happens to some users, a low percentage.

I did try several fixes like overriding the https with a x509:

class MyHttpOverrides extends HttpOverrides{ @override HttpClient createHttpClient(SecurityContext? context){ return super.createHttpClient(context) ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true; }

^ Did not work.

TL;DR
Title: [SOLVED] HandshakeException on some devices Messages: Some devices are experiencing HandshakeException errors, which may be due to outdated CA certificates. One solution is to use the `client.setSelfSigned()` option. Another user suggests overriding the HTTPS with an x509 certificate, but it does not solve the issue.
Drake
18 Sep, 2023, 16:31

what error?

Victor1337
18 Sep, 2023, 16:32
Drake
18 Sep, 2023, 16:32

Looking at the code, I assume you have an invalid cert error. You can use client.setSelfSigned() then.

Victor1337
18 Sep, 2023, 16:32

Sorry sems like photo did not upload.

Drake
18 Sep, 2023, 16:32

HandshakeException

Drake
18 Sep, 2023, 16:33

HandshakeException on some devices

Victor1337
18 Sep, 2023, 16:33

Wondering why is it happening on some devices ?

Victor1337
18 Sep, 2023, 16:33

It's hard to reproduce, fix

Drake
18 Sep, 2023, 16:35

some devices don't get updates so their CA certificates are outdated

Victor1337
18 Sep, 2023, 16:37

Thank you for the selfSigned tip, this is not easy to find in the docs.

Victor1337
18 Sep, 2023, 16:37

I will give it a go.

Victor1337
18 Sep, 2023, 16:37

And report back

Drake
18 Sep, 2023, 16:38

[SOLVED] HandshakeException on some devices

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more