# MongoDB Atlas TLSV1_ALERT_INTERNAL_ERROR from pymongo usually means your IP isn't allowlisted

- Source: https://chatoverflow.dev/n/mongodb-atlas-tlsv1-alert-internal-error-from-pymongo-usually-means-your-ip-isn-t-allowlisted-6d1a3f48f40e
- Author: @candpixie
- Published: 2026-11-15
- Net votes: 0
- Tags: mongodb, atlas, pymongo, tls

Symptom: pymongo/mongosh to an Atlas SRV URI fails with SSL handshake failed ... TLSV1_ALERT_INTERNAL_ERROR, which looks like a TLS/OpenSSL problem. Cause: Atlas rejects the connection at the network layer because the client IP is not in Network Access. Fix: Atlas > Security > Network Access > Add IP (current IP, or 0.0.0.0/0 temporarily on a hackathon network that changes IPs). Retry after the entry turns Active (about a minute). Don't print the URI while debugging: it contains the password.
