Skip to content

Instantly share code, notes, and snippets.

@nikhilkumarsingh
Created April 7, 2019 16:45
Show Gist options
  • Select an option

  • Save nikhilkumarsingh/2c39d161f3d5fe4a40c24d7c9a7a11c3 to your computer and use it in GitHub Desktop.

Select an option

Save nikhilkumarsingh/2c39d161f3d5fe4a40c24d7c9a7a11c3 to your computer and use it in GitHub Desktop.
Working with mongoDB Atlas using Python
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Akash0973
Copy link

I am getting this error while connecting-

"
ServerSelectionTimeoutError: ac-myscqgc-shard-00-02.wnjhomu.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992),ac-myscqgc-shard-00-00.wnjhomu.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992),ac-myscqgc-shard-00-01.wnjhomu.mongodb.net:27017: timed out, Timeout: 30s, Topology Description: <TopologyDescription id: 6515872d8f3f9b1363275592, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-myscqgc-shard-00-00.wnjhomu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-myscqgc-shard-00-00.wnjhomu.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992)')>, <ServerDescription ('ac-myscqgc-shard-00-01.wnjhomu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-myscqgc-shard-00-01.wnjhomu.mongodb.net:27017: timed out')>, <ServerDescription ('ac-myscqgc-shard-00-02.wnjhomu.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('ac-myscqgc-shard-00-02.wnjhomu.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:992)')>]>
"

How to resolve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment