Difference between revisions of "WebFund 2015W: Assignment 8"

From Soma-notes
Jump to navigation Jump to search
(Created page with "'''This assignment is not yet finalized.''' ===Error 1=== The following message was printed at the terminal prompt after running <tt>bin/www</tt>: <pre> /home/soma/Document...")
 
Line 26: Line 26:


===Error 3===
===Error 3===
The notes listing screen only says "Loading Notes...".  When you look at the network tab in the browser developer tools you notice a GET for /getNotes has returned a 500 status code.
===Error 4===
In the notes listing you see only one note listed with the title "Not Logged In" and contents of "Nobody seems to be logged in!".  The top of the page says the current username and the logout button still works normally.
===Error 5===
Clicking the "New Note" button seems to do nothing.  However, a POST request to /newNote has a response code of 200 and, when refreshed, there is a new, "Untitled" note added to the list.
===Error 6===
On the /notes page, when logged in as Alice, you only see "Alice account", "Welcome Alice", and the logout button (which works fine).  In the JavaScript console in the browser you see a message "ReferenceError: $ is not defined".

Revision as of 14:10, 15 March 2015

This assignment is not yet finalized.


Error 1

The following message was printed at the terminal prompt after running bin/www:

/home/soma/Documents/Class/WebFund/2015W/ajax-notes-broken/node_modules/mongodb/lib/mongodb/mongo_client.js:409
          throw err
                ^
Error: failed to connect to [localhost:27017]
    at null.<anonymous> (/home/soma/Documents/Class/WebFund/2015W/ajax-notes-broken/node_modules/mongodb/lib/mongodb/connection/server.js:555:74)
    at emit (events.js:106:17)
    at null.<anonymous> (/home/soma/Documents/Class/WebFund/2015W/ajax-notes-broken/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
    at emit (events.js:98:17)
    at Socket.<anonymous> (/home/soma/Documents/Class/WebFund/2015W/ajax-notes-broken/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
    at Socket.emit (events.js:95:17)
    at net.js:440:14
    at process._tickCallback (node.js:419:13)


Error 2

You are logged in and you try to go to http://localhost:3000/ (the top-level page). Rather than redirecting to /notes the load just hangs.

Error 3

The notes listing screen only says "Loading Notes...". When you look at the network tab in the browser developer tools you notice a GET for /getNotes has returned a 500 status code.

Error 4

In the notes listing you see only one note listed with the title "Not Logged In" and contents of "Nobody seems to be logged in!". The top of the page says the current username and the logout button still works normally.

Error 5

Clicking the "New Note" button seems to do nothing. However, a POST request to /newNote has a response code of 200 and, when refreshed, there is a new, "Untitled" note added to the list.


Error 6

On the /notes page, when logged in as Alice, you only see "Alice account", "Welcome Alice", and the logout button (which works fine). In the JavaScript console in the browser you see a message "ReferenceError: $ is not defined".