# Troubleshooting

Source: https://help.ruuster.com/idx/troubleshooting

> Fixes for the problems developers hit most often, from 403 origin errors and empty searches to missing disclaimers, stale pages and webhook signatures that don't match.

Start with the error code: [Errors and what to show](https://help.ruuster.com/idx/errors) says what
each one means. These are the problems we see most, and their fixes.

## Keys and domains

**403 `origin_not_allowed` in the browser.** A page calling the API with no key is on a domain that
isn't on your account's allowed domains, or that isn't approved for your boards yet. In your
console, open **Keys and domains** and, under **Website addresses your pages run on**, press **Add a domain** and add it. If the domain is new, also
request approval under **MLS approval for each domain**. A page on `localhost` can't be recognized by
its address: while you build, call your own listings route, which uses your secret key.

**403 `origin_not_allowed` from your server.** The secret key's site domain isn't approved for your
boards, or the site has none registered yet. In your console, **Keys and domains** shows each
board's status under **MLS approval for each domain**. If every board shows Approved and the error
stays, email `helpme@ruuster.com`.

**403 `access_revoked` on a secret key that used to work.** The key's pages were reported on a domain
that isn't approved for it, so it was paused. Fix the site, then press **Create a new live secret
key** under **Keys and domains** in your console. If the new key is refused too, email
`helpme@ruuster.com`.

**403 `origin_required` from a server or a terminal.** A call with no secret key works only from a
web page on an approved address. From a server, use the secret key as `Authorization: Bearer`.

**400 `secret_key_in_url` or 403 `secret_key_in_browser`.** The secret key was sent in a URL or from a
browser, and it is now flagged. Create a new one under **Keys and domains** in your console, put
the new key in `IDX_SECRET_KEY` on your server, and let your pages call your listings route
(`createListingsRoute` from `@ruuster/idx/route`) so no key is ever in a page.

**401 `invalid_credentials`.** Check for spaces or a missing character in the key, and that you are
using the current key after a rotation.

**403 `brokerage_not_enabled`.** Your live account isn't switched on yet, or no board has approved
yet. Open **Go live** in your console to see which step you are on.

**402 `payment_required`.** An invoice is unpaid past the 7 days of grace, so live website keys are
paused. Pay it from **Billing** in your console. The API answers again within a minute.

**403 `addon_not_enabled`.** The endpoint belongs to an add-on that is not on for your account. Add
it from **Billing** in your console, or hide the feature.

## Searches

**400 `location_required`.** Add a location: a `where` object from suggest, `zip`, `city`, `state`,
`bbox`, `polygon`, `boundariesId` or `shape`, or ask for `ownListings`, `agent` or `office`.

**400 `invalid_parameter` naming `where`.** The `where` value must be the JSON object suggest
returned, URL-encoded. The SDK encodes it for you.

**Fewer results than you expect.** Check the status (the default is `active` only), the type
(rentals appear only on accounts with rentals turned on) and `filterByMls`. Inside a map box, a drawn
area or a saved shape, listings with hidden addresses are left out by design.

**400 `page_depth_exceeded`.** Paging stops at 2,000 results. Narrow the search, and use
`/v1/listings/ids` for sitemaps.

**422 `sold_not_permitted`.** The search mixes sold with other statuses on boards that disagree, or asks
for sold data on boards that don't show it. Narrow with `filterByMls`, or drop `closed`.

**422 `own_listings_unconfigured`.** Your brokerage's agent or office MLS ids aren't on file yet.
Email `helpme@ruuster.com` with your office's MLS id.

## Pages

**The disclaimer is missing on some pages.** Print every block in `meta.mls`, on every page that shows
listings, including the map and similar homes.

**Listing pages answer 200 after the listing left the market.** Make the API's 410 your page's 410.
In Next.js App Router, decide it in `middleware.ts`
([Off-market and removed listings](https://help.ruuster.com/idx/guide-removed-listings)).

**The canonical link points at the wrong domain.** Set **Listing page link** on **Website** in your
console, or pass
`detailHref` and `pageHref` with your own URLs. Set `SITE_ORIGIN` for path templates.

**Every search page is `noindex`.** Pages with filters a visitor picked are `noindex,follow` on purpose.
Send `indexable=1` on pages you curate.

**Pages show an old price.** Check your cache time, then your webhook route's logs, then
[How current the data is](https://help.ruuster.com/idx/guide-data-freshness).

## Webhooks

**The signature never matches.** Verify against the raw body text, before any JSON parsing, and use the
current signing secret. During a rotation pass both secrets to `verifyWebhook`.

**The webhook was turned off.** It failed 20 runs in a row. Fix the route, email
`helpme@ruuster.com` to have it turned back on, and catch up with `/v1/changes`.

## Public Records

**409 `ambiguous_address`.** More than one property matches the address. Add the unit number or the
full street name, or look the property up by parcel number.

**`mls_not_in_scope` on a lookup.** The property is in a state your approved MLS boards do not
cover. Public Records works only in the states your boards cover.

## 429 errors

**429 `rate_limited`.** Wait `Retry-After` seconds. Cache server pages, keep at most four calls in
flight per key, and debounce suggest and the map ([Limits, units and plans](https://help.ruuster.com/idx/limits)).

**429 `daily_quota_exceeded`.** The key used its daily units. They reset at midnight America/Chicago.
Check `/v1/usage` for what spent them, usually an uncached page or a scraper.

## Still stuck

Send [support](https://help.ruuster.com/idx/support) the `x-request-id` of a failing answer, the request
without its key, and what you expected: email `helpme@ruuster.com` or call 312-948-5402.
