New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm: HTTP Transport: Exception executing get https://realm.mongodb.com/api/client/v2.0/app/{appId}/location #1430
Comments
Thanks for this report. We'll investigate, but in the meantime, you can try and workaround this by explicitly creating the http client used by Realm. You can pass it in the
|
I have the same issue: my application works correctly on emulators, but on some physical devices, it stops working and throws the following error message:
I have conducted tests on devices with Android 11 and 12, where the issue occurs, while on a device with Android 13, the application works without any problems. It is important to note that this error situation occurs on the Android platform, while on iOS devices, the application works correctly. After implementing the code provided by nirinchev, the application functions properly. |
First of all, great job for everything you guys doing at the Flutter Realm MongoDB. |
A quick update here: this appears to be related to dart-lang/http#627. The https certificates for |
DST is expected to completely deprecated in the next couple quarters here - And the MongoDB cloud intends to remove them from our endpoints. Please plan accordingly |
When it gets removed, it'll actually resolve this issue. I don't think we can wait for it though 😞 |
What happened?
Hello everyone, first of all, great job for everything you do at Realm MongoDB
I am getting this error after upgrading to version 1.6.0 on Android, not tested on iOS yet.
Realm: HTTP Transport: Exception executing get https://realm.mongodb.com/api/client/v2.0/app/{appId}/location: HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393))
I/flutter (24774): AppException: non-zero custom status code considered fatal, status code: 999
By the way, I am using a custom token from AWS Cognito service as credentials to login to Realm, I do not know if its relevant.
Maybe it is related to the change added in this new version (provided in the image) on the enhancements section.
Repro steps
Version
3.16.0
What Atlas Services are you using?
Both Atlas Device Sync and Atlas App Services
What type of application is this?
Flutter Application
Client OS and version
Android
Code snippets
Stacktrace of the exception/crash you're getting
2023-11-17T16:22:28.429781: [ERROR] Realm: HTTP Transport: Exception executing get https://realm.mongodb.com/api/client/v2.0/app/{appId}/location: HandshakeException: Handshake error in client (OS Error: I/flutter (24774): CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393)) I/flutter (24774): AppException: non-zero custom status code considered fatal, status code: 999
Relevant log output
No response
The text was updated successfully, but these errors were encountered: