fly-apps / fly-apps/redis

ERROR [ExceptionsHandler] Reached the max retries per request limit (which is 20).

Open
#22 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
86
Forks
35
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm getting:

```ts
2024-10-12T12:25:40.950 app[287175df06e218] lhr [info] 323 2024-10-12 12:25:40.942 ERROR [ExceptionsHandler] Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details
```

```js
# fly.toml app configuration file generated for fluent-redis on 2024-10-12T13:54:52+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'fluent-redis'
primary_region = 'lhr'

[build]
image = 'flyio/redis:6.2.6'

[[mounts]]
source = 'redis_server'
destination = '/data'

[[services]]
protocol = 'tcp'
internal_port = 6379
ports = []

[[vm]]
size = 'shared-cpu-1x'

[[metrics]]
port = 9091
path = '/metrics'

```

I'm putting the following url in my main app:

`redis://default:****@fluent-redis.internal:6379?family=6` as REDIS_URL

And I get these logs in my app on startup:

` 2024-10-12T12:22:30.767 app[d8dd673fed7d38] lhr [info] [fluent-backend] 323 2024-10-12 12:22:30.767 LOG [RedisModule] default: the connection was successfully established +0ms `

From the `import { RedisModule } from "@liaoliaots/nestjs-redis";`

```ts
RedisModule.forRoot({
readyLog: true,
config: {
url: process.env.REDIS_URL,
},
}),
```

But when actually trying to queue something with bull, I get the

```ts
2024-10-12T12:25:40.950 app[287175df06e218] lhr [info] [fluent-backend] 323 2024-10-12 12:25:40.942 ERROR [ExceptionsHandler] Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details
```

Thanks in advance for your help

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.