Skip to content

Connection string must use "redis:" protocol #927

@bdefore

Description

@bdefore

I'm using the connect-redis library which uses redis as a dependency (^2.1.0) https://github.com/tj/connect-redis/blob/master/package.json#L17 and began seeing this error with a fresh npm install:

[1] [piping] error given was: Error: Connection string must use the "redis:" protocol
[1]     at Object.createClient (/[REDACTED]/node_modules/express-jwt-proxy/node_modules/connect-redis/node_modules/redis/index.js:1298:23)
[1]     at new RedisStore (/[REDACTED]/node_modules/express-jwt-proxy/node_modules/connect-redis/lib/connect-redis.js:72:27)
[1]     at setupSessionManager (/[REDACTED]/node_modules/express-jwt-proxy/lib/index.js:201:14)
[1]     at Object.exports.default (/[REDACTED]/node_modules/express-jwt-proxy/lib/index.js:226:3)
[1]     at setupAuth (/[REDACTED]/bin/start_es6.js:63:32)
[1]     at Object.<anonymous> (/[REDACTED]/bin/start_es6.js:103:18)
[1]     at Module._compile (module.js:434:26)
[1]     at normalLoader (/[REDACTED]/node_modules/babel-core/lib/api/register/node.js:199:5)
[1]     at Object.require.extensions.(anonymous function) (/[REDACTED]/node_modules/babel-core/lib/api/register/node.js:216:7)
[1]     at Module.load (module.js:355:32)

I don't think I've seen this error before. Changing my redis url to redis://127.0.0.1:6379 instead of http://127.0.0.1:6379. Wouldn't this be a regression for 2.1.x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions