Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: fail open on redis errors in ratelimitservice (#5001)

Steffen Schmitz8b686e9b3174
diff --git a/web/src/features/public-api/server/RateLimitService.ts b/web/src/features/public-api/server/RateLimitService.ts
index fe02507470..edec9d8021 100644
--- a/web/src/features/public-api/server/RateLimitService.ts
+++ b/web/src/features/public-api/server/RateLimitService.ts
@@ -100,9 +100,9 @@ export class RateLimitService {
isFirstInDuration: err.isFirstInDuration,
};
} else {
- // Some other error occurred, rethrow it
+ // Some other error occurred, return undefined to fail open
logger.error("Internal Rate limit error", err);
- throw err;
+ return undefined;
}
}