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] how to set env variables #47

Open
itsmysyntax opened this issue Aug 9, 2020 · 0 comments
Open

[question] how to set env variables #47

itsmysyntax opened this issue Aug 9, 2020 · 0 comments

Comments

@itsmysyntax
Copy link

bro after doing all the steps you mentioned .

i got this mongo error can you tell what does this mean

`✔ WEB Server started at: http://localhost:3000
✔ Browse your REST API at: http://localhost:3000/explorer

Connection fails: MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoError: password must be a string
at passwordDigest (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:32:43)
at ScramSHA1._executeScram (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:163:29)
at AsyncWrap. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:276:19)
at AsyncWrap.wrap.ondone (internal/crypto/random.js:62:8) {
name: 'MongoError',
[Symbol(mongoErrorContextSymbol)]: {}
}]
It will be retried for the next request.
/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/topologies/server.js:233
throw err;
^

MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoError: password must be a string
at passwordDigest (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:32:43)
at ScramSHA1._executeScram (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:163:29)
at AsyncWrap. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:276:19)
at AsyncWrap.wrap.ondone (internal/crypto/random.js:62:8) {
name: 'MongoError',
[Symbol(mongoErrorContextSymbol)]: {}
}]
at Pool. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/topologies/server.js:438:11)
at Pool.emit (events.js:321:20)
at Pool.EventEmitter.emit (domain.js:482:12)
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/connection/pool.js:561:14
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/connection/pool.js:994:11
at callback (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/connection/connect.js:97:5)
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/connection/connect.js:396:21
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/auth_provider.js:66:11
at ScramSHA1._executeScram (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:165:16)
at AsyncWrap. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/auth/scram.js:276:19)
at AsyncWrap.wrap.ondone (internal/crypto/random.js:62:8)
Emitted 'error' event on DataSource instance at:
at DataSource.postInit (/home/lol/Documents/node_dev/flex-originals/node_modules/loopback-datasource-juggler/lib/datasource.js:489:16)
at onError (/home/lol/Documents/node_dev/flex-originals/node_modules/loopback-connector-mongodb/lib/mongodb.js:316:21)
at /home/lol/Documents/node_dev/flex-originals/node_modules/loopback-connector-mongodb/lib/mongodb.js:324:9
at executeCallback (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/operations/execute_operation.js:74:5)
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/operations/connect.js:209:23
at connectCallback (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/operations/connect.js:375:5)
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/operations/connect.js:442:14
at Server. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/topologies/server.js:230:11)
at Object.onceWrapper (events.js:428:26)
at Server.emit (events.js:321:20)
at Server.EventEmitter.emit (domain.js:482:12)
at Pool. (/home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/topologies/server.js:436:21)
at Pool.emit (events.js:321:20)
[... lines matching original stack trace ...]
at /home/lol/Documents/node_dev/flex-originals/node_modules/mongodb/lib/core/connection/pool.js:994:11 {
name: 'MongoNetworkError',
[Symbol(mongoErrorContextSymbol)]: {}
}

DONE Compiled successfully in 28751ms 09:04:16

I Your application is running here http://localhost:undefined
`

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

1 participant