Skip to content

Flutter Windows App for AppSync - CERTIFICATE_VERIFY_FAILED #5737

Open
@jobypthomas

Description

@jobypthomas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraphQL APIIssues related to the API (GraphQL) CategoryduplicateThis issue or pull request already existsfeature-requestA request for a new feature or an enhancement to an existing API or category.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions