I’ve implemented MongoDB’s Realm in my React-Native application to offer an offline first database with optional cloud sync. This all worked fine, but the development server (m0) was too slow to start testing our setup with actual users. I therefore upgraded our configuration to Mongo’s serverless last night. However, since then my app receives errors straight after authenticating (with google in my case), and in Mongo’s logs I see the following error message:
recoverable event subscription error encountered: error getting new mongo client while creating qbs app translator: error from previous Connect attempt: this service was recently updated, so it may take several minutes until the cluster can be connected to. Error: error connecting to MongoDB service cluster: failed to ping: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: ac-wuzwqcg-shard-00-00.yy8u3e3.mesh.mongodb.net:30544, Type: Unknown, Last error: remote error: tls: unrecognized name }, { Addr: ac-wuzwqcg-shard-00-01.yy8u3e3.mesh.mongodb.net:30544, Type: Unknown, Last error: remote error: tls: unrecognized name }, { Addr: ac-wuzwqcg-shard-00-02.yy8u3e3.mesh.mongodb.net:30544, Type: Unknown, Last error: remote error: tls: unrecognized name }, ] }
I find it hard to determine what’s wrong based on this message. It seems to complain that it can’t find a (new) server, but theres no way to be sure.
What can I do to fix this error? Any guidance would be highly appreciated.