forge-rcdb.nodejs
forge-rcdb.nodejs copied to clipboard
question about mongobd and Promise Promise when start
I git clone code from remastered and then "yarn start" have some error :
1、
Server listening on PORT: 3000
ENV: undefined
Connected to MongoDB Database: admin
uncaughtException
{ MongoError: Authentication failed.
at Function.MongoError.create (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/node_modules/mongodb-core/lib/error.js:31:11)
at/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/node_modules/mongodb-core/lib/connection/pool.js:497:72
at authenticateStragglers (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/node_modules/mongodb-core/lib/connection/pool.js:443:16)
at Connection.messageHandler (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/node_modules/mongodb-core/lib/connection/pool.js:477:5)
at Socket.
2、
Unhandled Rejection at: Promise Promise {
3、
Error: Not connected
at Promise (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/src/index.js:170:18)
at new Promise (
Follow the instructions in README to set up MongoDB and the specify the connection details along with your Forge app credentials (aka. client id/secret, optional if not using functionality that calls Forge services) in the config json
Even though I specified the secret, id, and db info in app.json it still gives me that dude's error
Edit: turns out I needed to set in development.config.js, since I wasn't building
Sorry to inform, this repo is no longer maintained. Alternatively your can try forge-extensions.autodesk.io