express-socket.io-session icon indicating copy to clipboard operation
express-socket.io-session copied to clipboard

Parameter problem?

Open LaKing opened this issue 8 years ago • 3 comments

Could someone give me a hint about this?

url.js:73
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
^

TypeError: Parameter 'url' must be a string, not undefined
at Url.parse (url.js:73:11)
at urlParse (url.js:67:5)
at session (project/node_modules/express-session/index.js:98:24)
at project/node_modules/express-socket.io-session/index.js:66:7

LaKing avatar Sep 15 '16 23:09 LaKing

No, not without a code sample | explanation.

FlorianWendelborn avatar Sep 16 '16 20:09 FlorianWendelborn

If you have not figured this out already, this bug is incredible simple as it's telling you exactly what the problem is. This is also a basic JS error and nothing to do with this module. Just making that clear for you and others, just in case anyone was wondering.

var url = 'http://www.yahoo.com' console.log(url)

you probably have...

url = 'http://www.yahoo.com/'
console.log(url)

needs to be ...

var url = 'http://www.yahoo.com'

knoxcard avatar Jun 18 '18 01:06 knoxcard

@LaKing - Close ticket?

knoxcard avatar Jun 18 '18 01:06 knoxcard