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

question about mongobd and Promise Promise when start #86

Open
xuehang1 opened this issue Oct 16, 2019 · 3 comments
Open

question about mongobd and Promise Promise when start #86

xuehang1 opened this issue Oct 16, 2019 · 3 comments

Comments

@xuehang1
Copy link

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. (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/node_modules/mongodb-core/lib/connection/connection.js:333:22)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:94:17)
name: 'MongoError',
message: 'Authentication failed.',
ok: 0,
errmsg: 'Authentication failed.',
code: 18,
codeName: 'AuthenticationFailed' }

2、
Unhandled Rejection at: Promise Promise {
{ developerMessage:
'The required parameter(s) client_id,client_secret not present in the request',
userMessage: '',
errorCode: 'AUTH-008',
'more info':
'http://developer.api.autodesk.com/documentation/v1/errors/AUTH-008' } } reason: { developerMessage:
'The required parameter(s) client_id,client_secret not present in the request',

3、
Error: Not connected
at Promise (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/src/index.js:170:18)
at new Promise ()
at MongoStore.collectionReady (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/src/index.js:163:19)
at MongoStore.get (/forgeview/forge-rcdb.nodejs/node_modules/connect-mongo/src/index.js:187:32)
at session (/forgeview/forge-rcdb.nodejs/node_modules/express-session/index.js:474:11)
at Layer.handle [as handle_request] (/forgeview/forge-rcdb.nodejs/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/forgeview/forge-rcdb.nodejs/node_modules/express/lib/router/index.js:317:13)
at /forgeview/forge-rcdb.nodejs/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/forgeview/forge-rcdb.nodejs/node_modules/express/lib/router/index.js:335:12)
at next (/forgeview/forge-rcdb.nodejs/node_modules/express/lib/router/index.js:275:10)
Cleaning Dir: /forgeview/forge-rcdb.nodejs/TMP

@dukedhx
Copy link
Collaborator

dukedhx commented Oct 16, 2019

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

@projeffboy
Copy link

projeffboy commented Jun 21, 2021

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

@libvarun
Copy link
Contributor

Sorry to inform, this repo is no longer maintained.
Alternatively your can try forge-extensions.autodesk.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants