#1578·guardrails

[bug]

Author: athmedataCreated Jul 15, 2026Updated Sep 22, 2026
LabelsbugStale

Describe the bug

guardrails hub install hub://guardrails/secrets_present fails consistently during our Docker build with:

ERROR:guardrails-cli:Failed to install guardrails-grhub-secrets-present
Exit code: 1
stderr: ERROR: Could not find a version that satisfies the requirement guardrails-grhub-secrets-present (from versions: none)
ERROR: No matching distribution found for guardrails-grhub-secrets-present
stdout: Looking in indexes: https://__token__:****@pypi.guardrailsai.com/simple, https://pypi.org/simple

We isolated this to the private package index itself — querying it directly returns an Internal Server Error:

bash
curl -s -u __token__:$GUARDRAILS_TOKEN https://pypi.guardrailsai.com/simple/guardrails-grhub-secrets-present/
{"message":"Internal Server Error"}

The validator's hub page (https://guardrailsai.com/hub/validator/guardrails/secrets_present) loads fine and lists the same install command we're using, so this doesn't appear to be a renamed/deprecated package — the private PyPI-style index (pypi.guardrailsai.com) is returning a 500 for this package's /simple/ endpoint.

To Reproduce

Steps to reproduce the behavior:

  1. Authenticate: guardrails configure --enable-metrics --enable-remote-inferencing --token <token>
  2. Run: guardrails hub install hub://guardrails/secrets_present
  3. Observe install failure with "Could not find a version... (from versions: none)"
  4. Directly query the index and confirm the 500: curl -s -u __token__:<token> https://pypi.guardrailsai.com/simple/guardrails-grhub-secrets-present/ → {"message":"Internal Server Error"}

We retried the install 5 times with a 10s backoff between attempts over ~3 minutes; all 5 attempts failed identically, ruling out transient network flakiness.

Expected behavior

guardrails hub install hub://guardrails/secrets_present should successfully resolve and install guardrails-grhub-secrets-present from the private index, as it does under normal conditions (this same Dockerfile step has worked previously and works intermittently on retry in other builds).

Libraries used w/ versions:

  • guardrails-ai==0.10.2 (pinned via poetry, ^0.10.0 in pyproject.toml)
  • guardrails-hub-types==0.0.4
  • guardrails-ai-types==0.4.0
  • Validator: hub://guardrails/secrets_present (guardrails-grhub-secrets-present)

Environment details:

  • Docker build using python:3.11-slim base image
  • Build runs via docker buildx bake / docker-compose build on an Azure VM (Ubuntu)
  • Dependency management via Poetry, with POETRY_VIRTUALENVS_IN_PROJECT=true (.venv activated before running guardrails hub install)
  • Not using conda; Poetry-managed virtualenv only

Additional context

  • This is intermittent at the infrastructure level: identical Docker builds sometimes succeed and sometimes fail with no changes to our Dockerfile, pyproject.toml, or poetry.lock — suggesting the private index has periods of instability/outage rather than this being deterministic on our end.
  • Direct curl to https://pypi.guardrailsai.com/simple/guardrails-grhub-secrets-present/ returns a raw {"message":"Internal Server Error"} JSON body (not a standard PyPI 404/</html> error page), which looks like an unhandled server-side exception on the index backend rather than a missing/unpublished package.
  • This is currently blocking our CI/CD Docker builds since the failure is unrecoverable via retry from our side.

Source: guardrails-ai/guardrails