The response has "Retry-After" in it so i should be 429, no? I'm rewriting my python cobalt api wrapper, and it would be very convinient for that error to have proper status code
reproduction steps
hit ratelimit
screenshots
No response
links
No response
platform information
anything
additional context
No response
Originally created by @nichind on GitHub (Dec 29, 2024).
### bug description
error.api.rate_exceeded returns with status code 400 instead of 429
Example response when hit ratelimit:
```
{'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '84', 'RateLimit-Policy': '20;w=60', 'RateLimit-Limit': '20', 'RateLimit-Remaining': '0', 'RateLimit-Reset': '37', 'Retry-After': '37'}
```
The response has "Retry-After" in it so i should be 429, no? I'm rewriting my python cobalt api wrapper, and it would be very convinient for that error to have proper status code
### reproduction steps
1. hit ratelimit
### screenshots
_No response_
### links
_No response_
### platform information
anything
### additional context
_No response_
GiteaMirror
added the bug label 2025-11-09 09:55:14 -06:00
you can increase the rate limit cobalt has an feature that you can increase the rate limit via this command.
RATELIMIT_MAX: 10000
@hextor1 commented on GitHub (Dec 30, 2024):
you can increase the rate limit cobalt has an feature that you can increase the rate limit via this command.
RATELIMIT_MAX: 10000
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @nichind on GitHub (Dec 29, 2024).
bug description
error.api.rate_exceeded returns with status code 400 instead of 429
Example response when hit ratelimit:
The response has "Retry-After" in it so i should be 429, no? I'm rewriting my python cobalt api wrapper, and it would be very convinient for that error to have proper status code
reproduction steps
screenshots
No response
links
No response
platform information
anything
additional context
No response
@hextor1 commented on GitHub (Dec 30, 2024):
you can increase the rate limit cobalt has an feature that you can increase the rate limit via this command.
RATELIMIT_MAX: 10000
@nichind commented on GitHub (Dec 30, 2024):
how is that related to my issue
@wukko commented on GitHub (Feb 11, 2025):
closed via #1066