Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to startup with IOREDIS v5.0.5 #520

Open
geyang opened this issue May 31, 2022 · 1 comment
Open

Fail to startup with IOREDIS v5.0.5 #520

geyang opened this issue May 31, 2022 · 1 comment

Comments

@geyang
Copy link

geyang commented May 31, 2022

This is related to #508. When ran encounters the following error:

import {PrismaClient} from "@prisma/client";
import {RedisPubSub} from 'graphql-redis-subscriptions';
import Redis from 'ioredis';

const options = {
  host: process.env.REDIS_HOST,
  port: Number.parseInt(process.env.REDIS_PORT),
  db: process.env.REDIS_DB,
  username: process.env.REDIS_USERNAME,
  password: process.env.REDIS_PASSWORD,
  retryStrategy: times => Math.min(times * 50, 2000)
};
console.log(options)

const pubsub = new RedisPubSub({
  publisher: new Redis(options),
  subscriber: new Redis(options)
});
node_modules/redis-parser/lib/parser.js:179
    return new ReplyError(string)
           ^

ReplyError: ERR value is not an integer or out of range
    at parseError (node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (node_modules/redis-parser/lib/parser.js:302:14) {
  command: { name: 'select', args: [ 'NaN' ] }
}
@simplenotezy
Copy link

In general I think it would be great to have ioredis bumped to version 5, so that it works with typeorm, which depends on ioredis 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants