Welcome to the Treehouse Community
Looking to learn something new?
Workspace unavailable when I access port 3000
Workspace Unavailable This is a preview link for a Treehouse Workspace that is not currently active.
If you are the workspace owner, you can launch it again via the Treehouse site.
Did you enter
node app.js in the console prior to the preview?
treehouse:~/workspace$ node app.js Server running at http://<workspace-url>/
Yes typed in the command to execute the server in Node.js.
Server running at http://<workspace-url>/
const username = request.url.replace("/", "");
ReferenceError: request is not defined
at Object.user (/home/treehouse/workspace/router.js:18:20)
at Server.<anonymous> (/home/treehouse/workspace/app.js:11:12)
at emitTwo (events.js:126:13)
at Server.emit (events.js:214:7)
at parserOnIncoming (_http_server.js:660:12)
This is what happens to me, even though using Treehouse own workspace.