API problems
warning
API problems
Connection refused
- Is the server running?
botconnector server status - Start it:
botconnector server start(botconnector server) - Confirm port: default is
11435— a custom--portchanges every URL.
404 on model
The model field must equal the loaded model id:
powershell
botconnector ps --jsonUse exactly that id in requests. A model downloaded but not loaded is not served.
401 / authorization errors
- An
--api-keywas set at server start; sendAuthorization: Bearer <key>— Authentication. - Rotated the key? Update every client.
Wrong port / stale processes
botconnector psshows what is actually running.- A previous instance may hold the port — stop it or use another port and update clients.
From another device fails
Localhost binds only to this machine. Remote access requires explicit binding + auth — see Network binding and Remote.
Malformed responses / hangs
- Verify with a raw request:
bash
curl http://127.0.0.1:11435/v1/models- If curl works but a client fails, the client's base URL is likely wrong (missing
/v1is the most common error). - Streaming clients: confirm SSE handling — Streaming.