mongo icon indicating copy to clipboard operation
mongo copied to clipboard

Error on Atlas: not primary and secondaryOk=false

Open erfanium opened this issue 3 years ago • 1 comments

Error - MongoError: {"topologyVersion":{"processId":"620ab5c7dea2e48072aff8bd","counter":3},"operationTime":{"$timestamp":"7064746775537516821"},"ok":0,"errmsg":"not primary and secondaryOk=false","code":13435,"codeName":"NotPrimaryNoSecondaryOk","$clusterTime":{"clusterTime":{"$timestamp":"7064746775537516821"},"signature":{"hash":"2pB18NeqyGGCrifDhThwCWzt1Sw=","keyId":{"high":1632770001,"low":1,"unsigned":false}}}}
--
34 | Error on find 29793769 Error: MongoError: {"topologyVersion":{"processId":"620ab5c7dea2e48072aff8bd","counter":3},"operationTime":{"$timestamp":"7064746775537516821"},"ok":0,"errmsg":"not primary and secondaryOk=false","code":13435,"codeName":"NotPrimaryNoSecondaryOk","$clusterTime":{"clusterTime":{"$timestamp":"7064746775537516821"},"signature":{"hash":"2pB18NeqyGGCrifDhThwCWzt1Sw=","keyId":{"high":1632770001,"low":1,"unsigned":false}}}}     at WireProtocol.commandSingle (https://deno.land/x/[email protected]/src/protocol/protocol.ts:25:19)     at async FindCursor.executor (https://deno.land/x/[email protected]/src/collection/commands/find.ts:6:29)     at async FindCursor.execute (https://deno.land/x/[email protected]/src/protocol/cursor.ts:17:25)     at async FindCursor.next (https://deno.land/x/[email protected]/src/protocol/cursor.ts:29:13)     at async FindCursor.[Symbol.asyncIterator] (https://deno.land/x/[email protected]/src/protocol/cursor.ts:45:27)     at async FindCursor.map (https://deno.land/x/[email protected]/src/protocol/cursor.ts:62:26)     at async file:///src/main.ts:20:23     at async dispatch (https://deno.land/x/[email protected]/middleware.ts:16:13)     at async dispatch (https://deno.land/x/[email protected]/middleware.ts:16:13)     at async dispatch (https://deno.land/x/[email protected]/middleware.ts:16:13)


erfanium avatar Feb 15 '22 06:02 erfanium

This happened to me today. I solved it by restarting the program. I'm not sure what caused it.

J053Fabi0 avatar Jun 27 '23 13:06 J053Fabi0