realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppTests fail because invalid certificate on IOS

sync-by-unito opened this issue · comments

Some tests are failing on IOS because of an invalid certificate on the app services endpoint.

io.realm.kotlin.mongodb.exceptions.ConnectionException: [Custom][CustomError(4000)] io.ktor.client.engine.darwin.DarwinHttpRequestException: Exception in http request: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “services.cloud.mongodb.com” which could put your confidential information at risk." UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=(
    "<cert(0x10983b600) s: services.cloud.mongodb.com i: R3>",
    "<cert(0x10983c000) s: R3 i: ISRG Root X1>"
), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://services.cloud.mongodb.com/api/client/v2.0/app/hello/location, NSErrorFailingURLStringKey=https://services.cloud.mongodb.com/api/client/v2.0/app/hello/location, NSUnderlyingError=0x600000c0dc80 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x60000330e4e0>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9807, _kCFStreamErrorDomainKey=3,_ kCFStreamErrorCodeKey=-9807, kCFStreamPropertySSLPeerCertificates=(
    "<cert(0x10983b600) s: services.cloud.mongodb.com i: R3>",
    "<cert(0x10983c000) s: R3 i: ISRG Root X1>"

➤ PM Bot commented:

Jira ticket: RKOTLIN-1073