For the complete documentation index, see llms.txt. This page is also available as Markdown.

SDK troubleshooting

SDK troubleshooting — installation, authentication, evaluation, trace upload, timeouts.

Adapted from the SDK's own troubleshooting docs. For the canonical reference, see stratix-python/docs/troubleshooting/.

Installation

Package not found

Could not find a version that satisfies the requirement layerlens

Include the LayerLens index URL:

pip install layerlens --extra-index-url https://sdk.layerlens.ai/package

Python version

Requires Python 3.8+. Check: python --version.

Client initialization

Missing API key

StratixError: The api_key client option must be set either by passing api_key to the client
or by setting the LAYERLENS_STRATIX_API_KEY environment variable

Set the env var or pass explicitly:

export LAYERLENS_STRATIX_API_KEY="..."

Invalid / expired API key

AuthenticationError (HTTP 401) or NotFoundError during init. Verify the key in the LayerLens dashboard.

Evaluations

Stuck wait_for_completion

The evaluation may be queued behind other jobs. Check status:

Model or benchmark not found

get_by_key is case-sensitive:

Trace uploads

File too large

Trace files must be under 50 MB. Split larger datasets.

Invalid file format

.json and .jsonl only. Validate JSON shape before upload.

Timeouts

Default timeout is 10 minutes (600s). Override:

Rate limits (429)

The SDK auto-retries with exponential backoff and respects Retry-After. To handle directly:

Error code reference

See Errors for the full exception hierarchy and HTTP-status mapping.

See also

Last updated

Was this helpful?