Skip to content

Few tips for successfully running the code in 2020 #76

Description

@username7171
  1. if the MongoDB URL starts with mongodb+srv: , then you need to upgrade the mongoose package, otherwise Invalid mongodb uri Must begin with “mongodb://” error will appear

  2. if error

GooglePlusAPIError: Legacy People API has not been used in project 123123123123123 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=123123123123123 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

appears during the OAuth process, then please upgrade the passport-google-oauth2 package

my package.json

 "dependencies": {
    "@sendgrid/mail": "^7.0.0",
    "body-parser": "^1.19.0",
    "concurrently": "^3.5.0",
    "cookie-session": "^2.0.0-rc.1",
    "express": "^4.17.1",
    "localtunnel": "^1.8.3",
    "lodash": "^4.17.15",
    "mongodb": "^3.5.6",
    "mongoose": "^5.10.2",
    "nodemon": "^1.11.0",
    "passport": "^0.3.2",
    "passport-google-oauth20": "^2.0.0",
    "path-parser": "^4.2.0",
    "sendgrid": "^5.1.2",
    "stripe": "^4.23.1"
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions