Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Atlas: not primary and secondaryOk=false #333

Open
erfanium opened this issue Feb 15, 2022 · 1 comment
Open

Error on Atlas: not primary and secondaryOk=false #333

erfanium opened this issue Feb 15, 2022 · 1 comment
Labels
atlas Everything About MongoDB Atlas bug Something isn't working

Comments

@erfanium
Copy link
Member

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/mongo@v0.29.0/src/protocol/protocol.ts:25:19)     at async FindCursor.executor (https://deno.land/x/mongo@v0.29.0/src/collection/commands/find.ts:6:29)     at async FindCursor.execute (https://deno.land/x/mongo@v0.29.0/src/protocol/cursor.ts:17:25)     at async FindCursor.next (https://deno.land/x/mongo@v0.29.0/src/protocol/cursor.ts:29:13)     at async FindCursor.[Symbol.asyncIterator] (https://deno.land/x/mongo@v0.29.0/src/protocol/cursor.ts:45:27)     at async FindCursor.map (https://deno.land/x/mongo@v0.29.0/src/protocol/cursor.ts:62:26)     at async file:///src/main.ts:20:23     at async dispatch (https://deno.land/x/oak@v10.0.0/middleware.ts:16:13)     at async dispatch (https://deno.land/x/oak@v10.0.0/middleware.ts:16:13)     at async dispatch (https://deno.land/x/oak@v10.0.0/middleware.ts:16:13)


@erfanium erfanium added the bug Something isn't working label Feb 15, 2022
@lucsoft lucsoft added the atlas Everything About MongoDB Atlas label Apr 11, 2022
@J053Fabi0
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
atlas Everything About MongoDB Atlas bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants