Repository: aws-amplify/amplify-flutter

Issue #4714: Unable to get local issuer certificate when configure Amplify on Windows Devices
Created: 2024-04-15T21:13:57Z
Description
I encountered an issue while configuring Authentication and Analytics in our cross-platform mobile app (Android, iOS, Windows). When attempting Amplify.configure(amplifyConfig), an error is triggered, but this issue is isolated to certain Windows devices. The configuration process works without issues on Android and iOS devices.
Error Details:
The error message received is as follows:
flutter: WARN  | Analytics  | Could not update endpoint: NetworkException {
  "message": "The request failed due to a network error.",
  "recoverySuggestion": "Ensure that you have an active network connection",
  "underlyingException": "POST https://cognito-identity.us-west-2.amazonaws.com/? failed: HandshakeException: Handshake error in client (OS Error: \n\tCERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:393))"
}

In certain cases, reinstalling the app temporarily resolves the issue on affected Windows devices. However, the problem resurfaces consistently after 1-2 days post reinstallation.
Auth error is a similar one with the same underlyingException.
Notes
Connectivity: Stable internet connection via LAN wire.
Windows version: Windows 10 Home
Categories

 Analytics
 API (REST)
 API (GraphQL)
 Auth
 Authenticator
 DataStore
 Notifications (Push)
 Storage

Steps to Reproduce
Try to configure amplify plugins using Amplify.configure(amplifyConfig)
Screenshots


Platforms

 iOS
 Android
 Web
 macOS
 Windows
 Linux

Flutter Version
3.10.0
Amplify Flutter Version
1.7.0 and lower
Deployment Method
Amplify CLI
Schema
No response

Duplicate issue #5737: Flutter Windows App for AppSync - CERTIFICATE_VERIFY_FAILED
Created: 2024-11-29T14:50:28Z
Description
I built a flutter app few years ago with Amplify to glue the AWS backend. I have iOS, Android, Web and Windows apps. All of them were working just fine. However, I started getting the following error in ONLY Windows App about a month ago:
flutter: UnknownException {
"message": "unable to send GraphQLRequest to client.",
"underlyingException": "POST https://xxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com/graphql/ failed: HandshakeException: Handshake error in client (OS Error: \n\tCERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:393))"
}
The requests fails for local certs and also for the Microsoft issued certificates for Windows App Store.
Authentication works (Cognito) just fine. It is the GQL API requests that fails. I use msix for signing (https://pub.dev/packages/msix)
Anyone?
Dart packages
msix | Dart package
Categories

 Analytics
 API (REST)
 API (GraphQL)
 Auth
 Authenticator
 DataStore
 Notifications (Push)
 Storage

Steps to Reproduce
Login using the App (Auth services works just fine)
The data is fetched and instead raised the error:
flutter: UnknownException {
"message": "unable to send GraphQLRequest to client.",
"underlyingException": "POST https://xxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com/graphql/ failed: HandshakeException: Handshake error in client (OS Error: \n\tCERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:393))"
}
Screenshots
No response
Platforms

 iOS
 Android
 Web
 macOS
 Windows
 Linux

Flutter Version
3.7.0
Amplify Flutter Version
12.4.0
Deployment Method
Amplify CLI (Gen 1)
Schema
No response

Closing comment (2024-12-03T20:43:13Z): @jobypthomas I think this is duplicate of #4714. if so please follow #4714 for update.