首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我无法理解Pymongo中的错误。

我无法理解Pymongo中的错误。
EN

Stack Overflow用户
提问于 2022-02-02 04:26:01
回答 1查看 66关注 0票数 0

我在做一个项目,我需要.数据库(MongoDB地图集)--我看到,在试图发送数据时,我得到了以下错误:

代码语言:javascript
复制
    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')>]>
EN

回答 1

Stack Overflow用户

发布于 2022-02-03 04:56:03

我是个白痴,在Replit上运行代码.哪个ofc运行在未设置IP地址的另一台计算机上。我现在在我的本地电脑上运行它,它很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70950501

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档