You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node
> var config = require('./config');
> var m = new Memcached(config.memcache_servers, {
failOverServers: config.memcache_failover_servers
});
> m.get('foo', console.log)
TypeError: Cannot call method 'reverse' of null
at Client.connect (/Users/michael/Projects/valet-express/node_modules/memcached/lib/memcached.js:132:42)
at Client.memcachedCommand [as command] (/Users/michael/Projects/valet-express/node_modules/memcached/lib/memcached.js:302:10)
at Client.get (/Users/michael/Projects/valet-express/node_modules/memcached/lib/memcached.js:812:10)
at repl:1:4
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
The text was updated successfully, but these errors were encountered:
I traced this back to my server config only having the IP address, and not including the port #. It would be nice if node-memcached just assumed a port of 11211 if no port is in the URL.
mjackson
changed the title
TypeError: Cannot call method 'reverse' of null
Default port to 11211 in URLs
Sep 11, 2014
On a fresh install of version 1.0.0
The text was updated successfully, but these errors were encountered: