Skip to Content
BuddyGeoDocs

Troubleshooting

Fix the problems that come up most often - 401 after a rotation, 429 bursts, swapped coordinates, no match over water - and collect what support needs.

Start with the response itself. outcome names what happened, error.next_step says what to do, and request_id identifies the request for everything that follows.

401 after rotating or revoking a key

Symptom. Requests that worked yesterday now return 401 with error.code: "revoked_api_key".

Cause. The key was revoked, or it was rotated and its overlap period has ended. During the overlap both the old and the new key work; afterwards only the replacement does.

Fix.

  1. Open API keys. A key that was replaced is marked rotated (or expiring while the overlap lasts) and names its replacement.
  2. Deploy the replacement secret. If nobody saved it when it was shown, create a new key: secrets are displayed once and cannot be read again.
  3. Filter Request logs by the outcome "Rejected key" to find the services that still send the old one. The log shows the masked key and its label.

Other 401 codes: missing_api_key means the X-API-Key header did not arrive (check proxies that strip custom headers), and invalid_api_key means the value is not a key of any workspace (check for truncation, quotes or trailing whitespace). See Authentication.

429 Too Many Requests

Symptom. Some requests in a burst fail with 429 and error.code: "rate_limited".

Cause. The workspace sent more requests in one second than its plan allows. The limit is shared by all keys of the workspace.

Fix.

  • Honour error.retry_after_s before retrying. The API contract sends the same value as the Retry-After header.
  • Throttle on your side to the plan's rate instead of sending bursts and retrying.
  • Look for a second service using the same workspace: Usage breaks requests and rate-limit events down by key.
  • For a backlog, submit a bulk job or move to a plan with a higher limit under Billing.

Throttled requests are not charged. Details and a retry example are in Rate limits and errors.

Results in the wrong place, or 400 invalid_coordinates

Symptom. An address on the wrong continent, result: null where you expected a city, or 400 with a message such as "Latitude 139.7454 is outside -90 to 90. Latitude and longitude may be swapped."

Cause. Almost always the coordinate order. BuddyGeo takes latitude first; GeoJSON, many databases and some GPS exports put longitude first.

Fix.

  • Send the values as named parameters, lat= and lon=, and check which is which at the point where you read them from your own data.
  • When reading from GeoJSON, remember that positions are [longitude, latitude].
  • In a spreadsheet, check the column mapping step: the wizard flags columns whose values look swapped.
  • Paste the pair into the reverse playground and look at the map. The submitted point is drawn where the API understood it.

The full rule is in Coordinate order.

No match over water or in remote areas

Symptom. HTTP 200, outcome: "no_match", result: null.

Cause. Nothing is mapped near the point. That is the correct answer for open water, and it also happens for positions that drifted off shore or for a GPS fix of 0, 0.

What to do.

  • Treat null as a normal value in your code. No-match lookups are free, so nothing is lost.
  • Filter out placeholder coordinates such as 0, 0 before sending them.
  • Do not round coordinates aggressively before the lookup: a point rounded to one decimal can move by several kilometres.

An address without a house number or postcode

Not every place has them. A named place may be mapped without a house number, some territories do not use postcodes, and rural points resolve to a locality. result.match.level says how precise the answer is, and result.match.detail explains it in a sentence. Examples for each case are in Reverse geocoding.

402 quota_exhausted

The monthly allowance is used up. Requests are rejected and not charged until the allowance renews or the plan is upgraded. Check the balance and the reset date under Billing; what counts toward the allowance is explained in Credits and billing.

503 and 504

503 upstream_unavailable and 504 upstream_timeout mean the geocoder behind the API did not answer. They are not charged. Retry with a pause, and check the status page: an incident there also appears as a banner on the affected dashboard screens.

A bulk job stopped part-way, or rows are missing an address

  • Partial job. Some rows failed for a retryable reason, typically a geocoder timeout. Open the job under Bulk jobs and choose Retry failed rows. Only those rows are processed again.
  • Invalid rows. The row's reason column says what was wrong, for example a non-numeric latitude. Invalid rows are free. Download the errors-only CSV, correct the values and upload them as a new job.
  • Unprocessed rows. The job was cancelled before it reached them. Their reserved credits were released.
  • Expired download. Result files are kept for 30 days after a job finishes. After that the job remains in the history with its counts, but the rows are gone: run it again from the original file.

What to send to support

Open Help and support from the failed request or job where possible: the ID is filled in for you. Otherwise include:

  • The request_id (starts with req_) or the job ID (starts with job_)
  • The time of the request and the endpoint
  • The error.code you received
  • Not your API key. Support identifies keys by their masked form and never needs the secret

On this page