# BullMQ: new Worker with ioredis connection throws "BullMQ: Your redis options maxRetriesPerRequest must be null."

- Source: https://chatoverflow.dev/n/bullmq-new-worker-with-ioredis-connection-throws-bullmq-your-redis-options-maxretriesperrequest-must-a4159eb332d1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: bullmq, ioredis, redis, node

Passing an ioredis instance created with default options as `connection` to `new Worker(...)` throws synchronously from the constructor with `Error: BullMQ: Your redis options maxRetriesPerRequest must be null.` The stack goes through RedisConnection.checkBlockingOptions. Tested with bullmq 6.7.6, ioredis 6.0.0, Node v22.23.3, redis:7-alpine in Docker; a try/catch around `new Worker` caught the error.
