Nirmos
Resources

Troubleshooting

Diagnose authentication, origins, validation, runtime failures and unsupported SDK features.

Use the error code and request ID to locate the failed stage. A successful configuration call does not establish provider availability or successful AI execution.

Authentication or authorization fails

SymptomCheck
AuthenticationError / 401Key is present, active, not expired/revoked, bound to an organization and sent to the correct deployment
PermissionDeniedError / 403Key grants, bound organization, live personal-key membership and any assigned-user requirement
Administration or review fails with a service keyUse an authorized personal key when the operation requires a user identity
NetworkErrorAPI URLs, connectivity, DNS and TLS; inspect the underlying cause without logging credentials

Use auth.getContext() to inspect safe actor context. It does not establish permissions for every operation. Create and manage keys through the Dashboard. Bearer transport accepts a Nirmos key, not an arbitrary OAuth token.

Management works but execution fails

Check both configured origins. Management uses apiBaseUrl, while AI execution uses runtimeBaseUrl; configure both for the same deployment. Do not include /v1 in base URLs. Provider credentials must be configured in the key's organization, independently of the Nirmos key itself.

Model or route cannot execute

Provide exactly one model or route. Use an active model/provider and configured credential, or an enabled active route with compatible targets. SDK model IDs in catalog responses differ from provider-qualified inference identifiers. Catalog capabilities describe configuration; runtime still verifies the adapter.

Stream handling fails

Consume a ChatStream once. Finish the loop before requesting finalResponse(). Breaking early cancels the body; a later final response is unavailable. Handle errors during iteration as well as initial stream(). SDK timeout covers body consumption. See streaming.

Prompts are stale or unresolved

Check active versus latest versus numeric version. Active retrieval can fail when no version was activated. Use cache: "reload" or managedPrompts.clearCache() when verifying a release. Cache is per client, with a 60-second default TTL. Literal flat keys take precedence over safe nested dotted-path lookup. Local rendering validates declared types/ranges/enums/lengths; required empty strings fail. See rendering boundaries.

Knowledge or Memory returns no results

Verify indexing, embedding model/dimensions and vector infrastructure. Knowledge needs indexed documents; Memory may admit zero candidates. Inspect Memory run counters, item evidence and embedding state. Space/policy lifecycle, filters and organization scope can exclude results. Reindexing is explicit, not automatic retry.

Current implementation limits

  • Image generation requires configured provider credentials, image catalog profiles, and private S3 storage. See image generation for supported parameters and storage errors.
  • Embeddings reject routes, aliases, cross-model fallback and deprecated optimization hints.
  • routingStrategy values serialize hints; cheapest/fastest/highest-quality algorithms and conditional route expressions are not executed by current routing.
  • No SDK CRUD resource for projects, applications, environments, limits or cache policies. Some related IDs and cache request headers exist; they do not create those resources.
  • No automatic pagination, tool execution, stream reconnection, OAuth issuance or token refresh.
  • No separate credentials per plane in one client. Use separate clients if necessary.
  • Local prompt cache applies only to managedPrompts, not management lists or generated answers. Semantic response caching is not implemented.
  • Memory policy decayConfig.halfLifeSeconds is accepted as configuration but does not run a decay algorithm.

Report a failure

Capture installed SDK version, method name, error class/code/status, request ID, trace ID and which origins are configured. Avoid including keys, provider secrets, document content or user messages. For errors and retry limits, see error handling.

Evaluation configuration and trace imports

Use the two-case workflow for pinned version IDs and evaluator bindings. Target creation returns targetVersion.id; evaluator creation returns version.id. Strict evaluator options and source-specific bindings report exact validation paths. Configuration changes require a new evaluator version; metadata updates do not change scoring.

Pass Gateway response.metadata.requestId as requestLogId for trace import. Logs persist asynchronously; payload capture is off by default. Eligible successful non-streaming chat needs operator opt-in before execution. TRACE_NOT_FOUND cannot distinguish foreign/expired/absent/not-yet-persisted logs; TRACE_NOT_IMPORTABLE and TRACE_PAYLOAD_UNAVAILABLE describe eligibility failures. See complete trace workflow.

On this page