Skip to content

Conversation

@imDarshanGK
Copy link

Fixes #207

The "/generate" endpoint now properly catches "RateLimitExceededException" and returns HTTP 429 with a clear error message instead of a generic 500 error when users exceed the build limit (10 builds/hour).

Changes:

Import "RateLimitExceededException"
Add exception handler before generic catch-all
Return HTTP 429 status with user-friendly message
Log rate limit violations for monitoring

@shiv-tyagi
Copy link
Member

Hey. Thanks for contributing. Have you tested this? Can you paste a screen shot of what we see on screen if someone tries to submit more than allowed build?

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

Successfully merging this pull request may close these issues.

Missing exception handling for rate limit exceeded in build submission endpoint

2 participants