Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Restore rate-limit logging for authenticated 429s (#4140)

claude[bot]7fc7c682f8b8
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 71addef74..3de77a9d5 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -792,11 +792,11 @@ async function supaAuthenticateUser(
try {
await rateLimiter.consume(team_endpoint_token);
} catch (rateLimiterRes) {
- // logger.error(`Rate limit exceeded: ${rateLimiterRes}`, {
- // teamId,
- // mode,
- // rateLimiterRes,
- // });
+ logger.error(`Rate limit exceeded: ${rateLimiterRes}`, {
+ teamId,
+ mode,
+ rateLimiterRes,
+ });
const secs = Math.round(rateLimiterRes.msBeforeNext / 1000) || 1;
const retryDate = new Date(Date.now() + rateLimiterRes.msBeforeNext);