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
[Bug] The property 'options.family' must be one of: 0, 4, 6. Received '4' #2704
Comments
I am not sure this is an issue in Bull or in IORedis. However you should be able to workaround it by just passing the family options separately: const myQueue = new Queue('myQueue', 'redis://@redis:50004/', { redis: { family: 4 } }); |
Hi @manast, Thanks for the reply. I use both IOredis and Bull and IOredis parses it correctly. The issue is with this line of code for Bull, which parses all query parameters as string: Line 335 in 60fa88f
In development, I use Thinking back now, why does bull need the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale, potentially |
Description
When a REDIS_URL specifies a "family" in the URL, e.g.
it is not type-casted to number, resulting in the error
Minimal, Working Test code to reproduce the issue.
Bull version
4.12.2
Additional information
One potential workaround could be to change the
redisOptsFromUrl
functionbull/lib/queue.js
Lines 319 to 341 in 60fa88f
to typecast all numbers, e.g.
although not too sure about any side effects.
The text was updated successfully, but these errors were encountered: