我在做一个项目,我需要.数据库(MongoDB地图集)--我看到,在试图发送数据时,我得到了以下错误:
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: cluster0-shard-00-00.e4dtu.mongodb.net:27017: connection closed,cluster0-shard-00-01.e4dtu.mongodb.net:27017: connection closed,cluster0-shard-00-02.e4dtu.mongodb.net:27017: connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 61fa067baedd893a84a4269d, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.e4dtu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-00.e4dtu.mongodb.net:27017: connection closed')>, <ServerDescription ('cluster0-shard-00-01.e4dtu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-01.e4dtu.mongodb.net:27017: connection closed')>, <ServerDescription ('cluster0-shard-00-02.e4dtu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-02.e4dtu.mongodb.net:27017: connection closed')>]>发布于 2022-02-03 04:56:03
我是个白痴,在Replit上运行代码.哪个ofc运行在未设置IP地址的另一台计算机上。我现在在我的本地电脑上运行它,它很好。
https://stackoverflow.com/questions/70950501
复制相似问题