SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CH1 - Uncaught Error starting Node App

    Hey guys!
    I just started and all worked out quite fine yet. The last step was to define the User module and change the app.js File. I checked spelling, entered my Data for the connection correctly and tried copying the files from the Archive.
    But still , if I want to start Node App - all I get is :

    C:\Users\fsubat\nodejs\Book\Chapter01\authentication>node app
    Express server listening on port 3000 in development mode

    C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoose\lib\u
    tils.js:413
    throw err;
    ^
    TypeError: Uncaught, unspecified "error" event.
    at TypeError (<anonymous>)
    at NativeConnection.EventEmitter.emit (events.js:74:15)
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\lib\model.js:554:31
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\lib\utils.js:408:16
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\node_modules\mongodb\lib\mongodb\db.js:1066:28
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\node_modules\mongodb\lib\mongodb\db.js:1200:28
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\node_modules\mongodb\lib\mongodb\cursor.js:124:30
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\node_modules\mongodb\lib\mongodb\cursor.js:166:32
    at C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_modules\mongoos
    e\node_modules\mongodb\lib\mongodb\cursor.js:441:39
    at Cursor.close (C:\Users\fsubat\nodejs\Book\Chapter01\authentication\node_m
    odules\mongoose\node_modules\mongodb\lib\mongodb\cursor.js:687:5)

    I searched the whole forum and some others over at github too but couldn't find an answer. Anyone got some ideas?

    Help would be greatly appreciated !
    Greetings - Rikunaru

  2. #2
    SitePoint Member
    Join Date
    May 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess i got it ... I spelled everything the right way but the credentials seem to be unable to take Names starting with Uppercase letters. After creating some various users and passwords the final solution was a Username starting lowercase.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •