Parameter url must be a string, not undefined

190 views
Skip to first unread message

binaryMoods

unread,
Dec 11, 2015, 1:38:01 PM12/11/15
to nodejs
I'm watching an MVA tutorial on nodejs, but it's from the last year. It's a very simple chat app with no authentication or anything. I managed to get rid of most deprecated errors, but this one. 

Running app.js and it will say Parameter url must be a string, not undefined. I believe it's to do with socket.

See screenshot. 




binaryMoods

unread,
Dec 11, 2015, 3:16:31 PM12/11/15
to nodejs
And my updated code is here

Ryan Graham

unread,
Dec 14, 2015, 2:02:08 PM12/14/15
to nodejs
You are reading the URL for your MongoDB connection from an environment variable but it appears that you have not actually set it, so it is showing up as an undefined value in your code.

~Ryan

On Fri, 11 Dec 2015 at 12:16 binaryMoods <imav...@gmail.com> wrote:
And my updated code is here

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/90425a45-8cf9-4093-badb-66640adca031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

~Ryan

binaryMoods

unread,
Dec 16, 2015, 8:10:58 PM12/16/15
to nodejs
Hi Ryan, awesome. That totally makes sense. I've just started learning nodejs. Thanks a lot!
Reply all
Reply to author
Forward
0 new messages