ReplicaSetNoPrimary

Hi,
When I try insert data using python code to MongoDB (free tier), one time is ok but very often I got this error which I do not understand. Someone can explain me what should I do? Maybe any additional configuration?

ERROR:root:connection closed,connection closed,connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 60526c90a46b35c81257ec99, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('helpdesk-shard-00-00.bxtvj.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>, <ServerDescription ('helpdesk-shard-00-01.bxtvj.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>, <ServerDescription ('helpdesk-shard-00-02.bxtvj.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>]>

My insert code:

configured = False
post = {"GuildID": guild.id, "Configured": configured}
generalDb.insert_one(post)

Best Regards,
BElluu