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

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

Open
flazouh opened this issue Oct 12, 2024 · 2 comments

Comments

@flazouh
Copy link

flazouh commented Oct 12, 2024

Hi, I'm getting:

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
# 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";

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

@flazouh flazouh changed the title 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 my fly app to my redis fly app ERROR [ExceptionsHandler] Reached the max retries per request limit (which is 20). Oct 12, 2024
@flazouh
Copy link
Author

flazouh commented Oct 13, 2024

I added the redis-app in the private ip6 network with flycast, so now I have a private ip6 adress to it as can be seen here:
Screenshot 2024-10-13 at 14 17 08

I'm trying to access it from my backend through redis://default:[email protected]:6379?family=6

I get this at my backend startup though... but no way to actually get the call to .add to my queue to not hang and give this max retry error

	2024-10-13 13:27:46.193	
[fluent-backend] 323 2024-10-13 11:27:46.193     LOG [RedisModule] default: the connection was successfully established +0ms

image

Could you give me a hand ? @jsierles

Everything works in my local dev environement.

@rarepepi
Copy link

@flazouh works for me if you use the full object instead of just the URL

new Redis({
       family: 6,
       port: 6379,
       host: 'app-name.internal',
       username: 'default',
       password: process.env.REDIS_PW,
});

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