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

Update Readme #188

Open
stas-at-ibm opened this issue Nov 11, 2023 · 0 comments
Open

Update Readme #188

stas-at-ibm opened this issue Nov 11, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation low Priority of the feature

Comments

@stas-at-ibm
Copy link
Collaborator

Description

  • add guide how to run tests
  • create Troubleshooting docs, add "MongoDB BulkWriteError" and solution (Set the connection string correctly i.e. /game-stats?retryWrites=...)

Resources

Mongo Error
ERROR [27-10-2023 10:23:51]: No write concern mode named 'majority/game-stats' found in replica set configuration
Oct 27 12:24:07 PM      err: {
Oct 27 12:24:07 PM        "type": "MongoBulkWriteError",
Oct 27 12:24:07 PM        "message": "No write concern mode named 'majority/game-stats' found in replica set configuration",
Oct 27 12:24:07 PM        "stack":
Oct 27 12:24:07 PM            MongoBulkWriteError: No write concern mode named 'majority/game-stats' found in replica set configuration
Oct 27 12:24:07 PM                at handleMongoWriteConcernError (/app/steam-game-stats/node_modules/mongodb/lib/bulk/common.js:456:14)
Oct 27 12:24:07 PM                at resultHandler (/app/steam-game-stats/node_modules/mongodb/lib/bulk/common.js:393:20)
Oct 27 12:24:07 PM                at /app/steam-game-stats/node_modules/mongodb/lib/utils.js:413:17
Oct 27 12:24:07 PM                at /app/steam-game-stats/node_modules/mongodb/lib/operations/execute_operation.js:57:17
Oct 27 12:24:07 PM                at retryOperation (/app/steam-game-stats/node_modules/mongodb/lib/operations/execute_operation.js:106:20)
Oct 27 12:24:07 PM                at /app/steam-game-stats/node_modules/mongodb/lib/operations/execute_operation.js:157:32
Oct 27 12:24:07 PM                at /app/steam-game-stats/node_modules/mongodb/lib/cmap/connection_pool.js:270:25
Oct 27 12:24:07 PM                at handleOperationResult (/app/steam-game-stats/node_modules/mongodb/lib/sdam/server.js:385:16)
Oct 27 12:24:07 PM                at Connection.onMessage (/app/steam-game-stats/node_modules/mongodb/lib/cmap/connection.js:199:21)
Oct 27 12:24:07 PM                at MessageStream.<anonymous> (/app/steam-game-stats/node_modules/mongodb/lib/cmap/connection.js:63:60)
Oct 27 12:24:07 PM        "writeErrors": [],
Oct 27 12:24:07 PM        "result": {
Oct 27 12:24:07 PM          "ok": 1,
Oct 27 12:24:07 PM          "writeErrors": [],
Oct 27 12:24:07 PM          "writeConcernErrors": [
Oct 27 12:24:07 PM            {
Oct 27 12:24:07 PM              "code": 79,
Oct 27 12:24:07 PM              "codeName": "UnknownReplWriteConcern",
Oct 27 12:24:07 PM              "errmsg": "No write concern mode named 'majority/game-stats' found in replica set configuration",
Oct 27 12:24:07 PM              "errInfo": {
Oct 27 12:24:07 PM                "writeConcern": {
Oct 27 12:24:07 PM                  "w": "majority/game-stats",
Oct 27 12:24:07 PM                  "wtimeout": 0,
Oct 27 12:24:07 PM                  "provenance": "clientSupplied"
Oct 27 12:24:07 PM                }
Oct 27 12:24:07 PM              }
Oct 27 12:24:07 PM            }
Oct 27 12:24:07 PM          ],
@stas-at-ibm stas-at-ibm added the documentation Improvements or additions to documentation label Nov 11, 2023
@stas-at-ibm stas-at-ibm added this to the Application Hardening milestone Nov 11, 2023
@stas-at-ibm stas-at-ibm added the low Priority of the feature label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation low Priority of the feature
Projects
None yet
Development

No branches or pull requests

1 participant