Skip to main content
A script, CI job or integration that calls the Ravion API gets one of these responses:
Often only some requests fail: the first few in a burst succeed and the rest get 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 no User-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 a User-Agent are always refused with 403.
  • Requests with neither a User-Agent nor an Authorization header share a strict per-IP rate limit. Once an IP address exceeds it, the rest of those requests get 429 until its rate drops.
Requests that send a 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 a User-Agent header that names your client to every request:
Any non-empty value works. A name and version you choose, such as 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 sends ravion-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 the Authorization 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.