429. Parallel CI jobs that call the API at the same time hit this most.
Why this happens
Ravion’s edge firewall checks every request before it reaches the API. Almost all automated abuse of the API sends noUser-Agent header, so requests without one are limited much more strictly than requests with one:
- Requests to sign-in and sign-up paths (
/auth/) without aUser-Agentare always refused with403. - Requests with neither a
User-Agentnor anAuthorizationheader share a strict per-IP rate limit. Once an IP address exceeds it, the rest of those requests get429until its rate drops.
User-Agent aren’t subject to either rule. Requests authenticated with an API key aren’t subject to the rate limit, but may be checked more strictly in the future, so send a User-Agent with them too.
Browsers, curl, the Ravion CLI and most HTTP libraries send a User-Agent by default. Requests go out without one when a client sets the header list itself, a library or proxy strips it, or the code sets it to an empty string.
Fix: send a User-Agent header
Add aUser-Agent header that names your client to every request:
my-company-ci/1.0, also helps Ravion support find your requests if you contact us.
Retrying requests without a User-Agent doesn’t help. Each retry counts toward the same limit, so a retry loop keeps the IP address over it.
Fix: use the Ravion CLI
The Ravion CLI sendsravion-cli/<version> as its User-Agent on every request. If your script only needs commands the CLI offers, calling the CLI instead of the API also avoids the problem.
Check what your client sends
Before you point your client at an external echo service, remove theAuthorization header, cookies and any other secrets from the request, so you don’t send your API key to a third party. Then send the request to a service such as https://httpbin.org/headers instead of https://api.ravion.com, keeping the same User-Agent settings, and read the headers it received. If User-Agent is missing or empty in the response, your client is not sending one.