You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.error({userId: user.id},"Unexpected error in the rate limiter",error);
132
+
throwerror;
133
+
}
134
+
log.warn({userId: user.id},"Rate limiter prevents accessing method due to too many requests.",error,{method: "startPrebuild"});
135
+
thrownewResponseError<RateLimiterError>(ErrorCodes.TOO_MANY_REQUESTS,"too many requests",{method: "startPrebuild",retryAfter: Math.ceil(error.msBeforeNext/1000)||1});
Copy file name to clipboardExpand all lines: components/server/src/websocket/websocket-connection-manager.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -358,7 +358,7 @@ class GitpodJsonRpcProxyFactory<T extends object> extends JsonRpcProxyFactory<T>
358
358
throwrlRejected;
359
359
}
360
360
log.warn({ userId },"Rate limiter prevents accessing method due to too many requests.",rlRejected,{ method });
361
-
thrownewResponseError<RateLimiterError>(ErrorCodes.TOO_MANY_REQUESTS,"too many requests",{ method,retryAfter: Math.round(rlRejected.msBeforeNext/1000)||1});
361
+
thrownewResponseError<RateLimiterError>(ErrorCodes.TOO_MANY_REQUESTS,"too many requests",{ method,retryAfter: Math.ceil(rlRejected.msBeforeNext/1000)||1});
0 commit comments