[go: nahoru, domu]

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

MongoError: password cannot be empty #144

Open
genaro-picazo opened this issue Sep 13, 2018 · 2 comments
Open

MongoError: password cannot be empty #144

genaro-picazo opened this issue Sep 13, 2018 · 2 comments

Comments

@genaro-picazo
Copy link

Describe the bug
Since I am am not running mongodb locally, I have created a db on my mlab account and am trying to seed it via the ./node_modules/.bin/rest-hapi-cli seed <my mlab db URI> command. Collections are created successfully, but data is not seeded, as there is an error.

To Reproduce
Steps to reproduce the behavior:

  1. Create an mlab account, create a test database and database user. Obtain the URI to access it.
  2. Clone the test repo as per the quickstart
  3. Try seeding the mlab database using the URI obtains in (1)
  4. See error

Expected behavior
Mlab database would be created and collections would be seeded

Actual Behavior
The follow error occurs:
"MongoError: password cannot be empty"

Desktop (please complete the following information):

  • OS: Windows 7 x64
  • terminal
@JKHeadley
Copy link
Owner

@gpicazo I tried creating a new mlab db and was unable to replicate your issue. However I'm using macOS instead of windows so that could be the issue.

Have you tried starting your server and testing the endpoints through the swagger UI? If all is working you should be able to create a user manually.

@TLMcNulty
Copy link
TLMcNulty commented Jan 15, 2019

@gpicazo did you ever figure this out? I'm having the same issue with an mlab account.

Edit: I'm dumb my URI was actually missing the password.

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

3 participants