Skip to Content

Troubleshooting

Fix a failed request, handle a partial reply, and find out what Meikai logs.

Errors

Check the status code and read error.message in the response. For example, a request with no token returns 401 with this message.

{"error":{"message":"Missing Authorization: Bearer <token> header.","type":"meikai_gateway"}}
StatusWhat happenedWhat to do
400Meikai could not read the request, or the model rejected a field.Send a JSON object. Check the field names and values in Chat completions.
401The request is missing a bearer token, or service access is temporarily unavailable.Send the header Authorization: Bearer <your token>. If the error says service access is unavailable, contact your administrator.
403Meikai rejected the token or could not serve this request.Ask your Meikai administrator to check your token and access.
404Meikai could not find the path or serve the model.Check the request URL and copy a model ID from List models.
429You reached a usage limit.If the response includes a Retry-After header, wait that many seconds. Otherwise, double the wait after each retry and add a small random delay so clients retry at different times.
502Meikai could not complete the request.Wait briefly. Try again if it is safe to repeat the request.

Use API health to check whether the Meikai API is responding. A model can still be busy or unavailable when the API is up.

Incomplete responses

If the reply cuts off or comes back empty, check finish_reason. A value of length means the model reached its output limit. Some models spend part of that limit working out the answer. See Reasoning and output budgets.

If a stream disconnects early, mark the text you received as incomplete. A retry starts a new reply. If your app already ran a tool that changed something, such as placing an order, check the result before you retry. Running the tool twice could place a second order.

When you contact support, include the request time, model ID, status code, and Meikai error message. Keep your API token and the text of your prompt private.

Data and privacy

Meikai keeps prompt and reply text out of its API request logs. Each log entry records the request time, status code, how long the request took, and the label on your API token. It can also include the model and token counts.

On this page