The call is refused
404 relay "web-search" not found
Why: no relay has that name. Names are case-sensitive.
Fix:
- Check the name in the URL against the list on the Relays page.
- If the relay comes from
config.jsonor Helm, look forskipping relay "web-search" from config filein the server log. The message after it says which setting is wrong. See A relay from config.json is missing. - If the config store is turned off, no relays are served at all.
404 no route for POST /search on relay "web-search"
Why: the relay has no route for this method and path, and Relay Any Path is off.
Fix: compare the call with the route table:
- A trailing slash is an extra segment:
/search/does not match/search. *stays inside one segment:/results/*does not match/results/abc/pages. Use/results/**to match everything below.- If the route has Header Matchers, the call must send those headers too.
- The method must match: a
GETroute does not coverPOST.
404 route DELETE /results/abc on relay "web-search" is disabled
Why: the call matched a route whose Enabled switch is off. A disabled route refuses its calls, even with Relay Any Path on, and even if a broader route lower down would match.
Fix: turn the route back on in the route table, or delete it if you want calls to reach a route below it.
403 Relay 'text-to-speech' is not allowed for virtual key 'research-assistant'
Why: the virtual key has no access to this relay. Relay access is off until you grant it, relay by relay.
Fix: open the virtual key and add the relay under Relay access. See Virtual keys: relay access.
In Enterprise, the message may name an access profile or a project instead, such as Relay 'translate' is not allowed for access profile 'contractors'. Grant the relay on that access profile or project. A key that belongs to a team, customer or user with an access profile takes its relays from the profile, so a grant on the key itself is not used.
402 or 429: budget or rate limit
Why: the caller’s budget is used up, or it hit its request rate limit. Relay calls count against the same budgets and rate limits as model calls. The message names which limit ran out. Fix: raise or reset the limit named in the message — the virtual key, team or customer, or in Enterprise an access profile or a project the call was scoped to. See Budgets and limits.400 before the call is sent
Bifrost refuses these before contacting the API, so nothing is charged.The API returns an error
When the call reached the API, its status and body are passed back to you unchanged, and the call has a row in Relay Logs. Calls with a4xx or 5xx reply are not charged.
401 or 403 from the API
Why: the API did not accept the relay’s credential. Fix:- Check the key on the relay’s Authentication tab. A key written as
env.VAR_NAMEis read when Bifrost starts, so make sure that variable is set. - Check the method. An API that wants
X-Api-Key: <key>needs Custom header, not Bearer token. Some APIs also need a Value Prefix, such asToken. - Remember that the caller’s own
Authorizationheader never reaches the API. Only the relay’s credential is sent.
AWS returns a signature error
Why: the signature does not match what AWS expects. Fix:- AWS Service must be the signing name (
textract,translate,comprehend), not the product name. - Region must be the region in the base URL.
https://translate.us-east-1.amazonaws.comneedsus-east-1. - With IAM Role (Inherited), the machine running Bifrost must have AWS credentials allowed to call that service.
The API says the path is wrong (404)
Why: the caller’s path is added to the end of the base URL. If the base URL already ends in/v1 and the caller also sends /v1/search, the API receives /v1/v1/search.
Fix: put the shared prefix in one place only: either in the base URL or in the routes and calls, not both.
A header the caller sent is missing
Why: Bifrost removes some caller headers on purpose:- credentials (
Authorization,x-api-keyand similar) - any header the relay also sets under Extra Headers, since the relay’s value wins
- under AWS SigV4, every
X-Amz-*header exceptX-Amz-Target
502 relay response is too large to buffer
Why: a normal call’s reply was over 64 MB.
Fix: make the route stream: set Streaming to Always stream, or add the path under Always-Stream Paths. Streamed replies have no size limit. If the route’s Streaming is set to Never stream, that setting wins over Always-Stream Paths; change it to Always stream or Auto first. See Streaming.
The call times out
Why: a normal call took longer than Timeout (seconds) (60 by default). A stream is bound by the same Timeout (seconds) while it waits for the API to start replying, and by Stream Idle Timeout (seconds) (60 by default) once it has started, if it then goes quiet. Fix: raise the relevant value on the relay’s Network tab — Timeout (seconds) for a slow-to-start reply, Stream Idle Timeout (seconds) for a stream that stalls partway through.The cost is 0 or wrong
Open the call in Relay Logs and look at the Cost block: it shows the fee per call, the price per unit, the units read and the units billed. Then paste the same bodies into Test Pricing. Its notes say which part came out empty and why, for exampleno quantity could be read from the response body with measure value at path usage.credits.
The usual causes:
- The call was not charged. Only billable routes with a
2xxreply are charged, and onlyPOSTroutes are billable by default. The row shows not billable or an error status. See Which calls are charged. - The units are read from the wrong body. Units Read From says Response body but the number is in the request, or the other way round.
- The path is wrong. Paths are case-sensitive and use dots:
usage.credits, notUsage.Creditsorusage/credits. For a list, use#, as inresults.#.credits. - The body is not read as JSON. Paths only work on JSON bodies, and a response is only read as JSON when its content type contains
json. If the body is actually JSON but mislabeled (for exampletext/plain), fix the content type rather than switching measures — that keeps the billed quantity the same. For a body that genuinely isn’t JSON, use Size of the whole body or Characters of the whole body instead, which changes what’s billed. - The reported cost is ignored. Ignore Reported Cost is on, so the API’s own cost is not added.
- The route overrides the price. A route with an override badge sets its own price, and a field set to
0there removes that part. Open the route’s Pricing Override to check. - A stream reported nothing. Only events that carry a mapped field are read, and a stream that is not server-sent events is not read at all unless it is priced by size. See Streamed replies.
Relay Logs is missing data
- No rows at all: Relay Logs need a log store. Without one, the page shows an error.
- A call has no row: the call was refused before access checks (unknown relay, no route, a
400above). Fix the call, and the next one gets a row. - No bodies on a row: content logging is off for that call, by the global setting, the virtual key or the project. The row says Content logging has been disabled for this request. The
x-bf-disable-content-loggingrequest header only has this effect whenclient.allow_per_request_content_storage_overrideis turned on (off by default) — with it off, a caller sending that header has no effect, and content is still stored. See Content logging. - A body is missing: a binary body (audio, images) is not kept; text bodies are kept in full.
A relay from config.json or Helm is missing
Look for one of these warnings in the server log at startup:
If a virtual key in the same file names a relay that does not exist, that one grant is skipped with a warning and the rest of the key is loaded. Fix the relay, and the grant is applied the next time the key’s entry is synced.

