MongoDB Connection Timing Out in Kotlin App

Hello! I’ve been having a lot of trouble with my connection timing out in my kotlin app whenever I call the update_one method to update my collection. When I catch the exception, it says:

com.mongodb.MongoTimeoutException: Timed out while waiting for a server that matches WritableServerSelector. Client view of cluster state is {type=REPLICA_SET, servers=[{address=test1, type=UNKNOWN, state=CONNECTING}, {address=test2, type=UNKNOWN, state=CONNECTING}, {address=test3, type=UNKNOWN, state=CONNECTING}]

I made sure to have Internet permissions enabled in the Android Manifest, and I tried my best to make sure that my URI was correct (I triple checked it). I also enabled any address to access my database (just for testing, I’ll change it later). While I do know that the better method is to use an API to communicate between the app and database, the app I’m working on is just a test, so privacy isn’t a concern for now. I’ve looked through the forums, but haven’t seen anything that really fits my problem, and I’ve been trying to fix this for a few hours, so any help would be appreciated! Thank you!