13435
Call a Pro
MongoDB · Database Server & Atlas
MongoDB server reported: Not Primary No Secondary Ok.
Quick Answer
Error code 13435 on your MongoDB Database Server & Atlas means: MongoDB server reported: Not Primary No Secondary Ok.. This is usually fixable — see the step-by-step guide below.
Affected Models
Applies to all models
Likely Causes
How to Fix It
1
Review logs/telemetry for code 13435 (NotPrimaryNoSecondaryOk) and capture the exact command and parameters that triggered it.
2
Gate retries on a stable cluster view and avoid stale routing caches.
3
Refresh topology metadata and retarget the command using current primary/shard ownership.
4
Review replication/sharding events around the timestamp to confirm role transitions.
5
Add monitoring for recurring NotPrimaryNoSecondaryOk events so future incidents are detected and triaged faster.
Pro Tip
This issue typically requires professional diagnosis. Attempting this fix without proper training could cause further problems.
Related Error Codes