You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the guradrails hub is not working as expected it is giving 403 error for token authentication even if you create a fresh api while installing regex_match, and toxic_language in docker container To Reproduce
Steps to reproduce the behavior:
make a dockerfile
ARG GUARDRAILS_API_KEY
ENV GUARDRAILS_API_KEY=${GUARDRAILS_API_KEY}
RUN pip install guardrailsai[api]
RUN guardrails configure --enable-metrics --enable-remote-inferencing --token $GUARDRAILS_API_KEY
RUN guardrails hub install hub://guardrails/regex_match
RUN guardrails hub install hub://guardrails/toxic_language
Expected behavior
it should be installing regexMatch and toxicLanguage validators but not working
Library version:
Version 0.5.15
The text was updated successfully, but these errors were encountered:
We're currently unable to reproduce this error with the information you included in the issue description. Would you mind providing the below additional context so we can better debug?
What version of guardrails-ai are you installing? You mention in the description this is for version 0.5.15, but in the code snippet you are not locking the version during install which currently would bring in 0.6.0.
Where are you running the docker build?
Are you behind a firewall?
Is it running in an AWS VPC?
Is there a reliable internet connection?
Can you confirm the API Key you're using is not expired? i.e. does it work if you use it locally?
For context, here is the Dockerfile and build script I'm using without any errors. Note that I am running this on a Macbook Pro on a typical network connection (i.e. not a firewalled or corporate network):
Dockerfile
FROM public.ecr.aws/docker/library/python:3.12-slim
ARG CACHE_BUST
ARG GUARDRAILS_API_KEY
ENV GUARDRAILS_API_KEY=${GUARDRAILS_API_KEY}
RUN apt-get update
RUN apt-get install -y git
RUN pip install guardrails-ai[api]==0.5.15 gunicorn[gthread]
RUN which guardrails
RUN guardrails configure --enable-metrics --enable-remote-inferencing --token $GUARDRAILS_API_KEY
RUN guardrails hub install hub://guardrails/regex_match
RUN guardrails hub install hub://guardrails/toxic_language
CMD gunicorn --bind 0.0.0.0:8000 --timeout=90 --workers=2 "guardrails_api.app:create_app(None, None, 8000)"
the guradrails hub is not working as expected it is giving 403 error for token authentication even if you create a fresh api while installing regex_match, and toxic_language in docker container
To Reproduce
Steps to reproduce the behavior:
ARG GUARDRAILS_API_KEY
ENV GUARDRAILS_API_KEY=${GUARDRAILS_API_KEY}
RUN pip install guardrailsai[api]
RUN guardrails configure --enable-metrics --enable-remote-inferencing --token $GUARDRAILS_API_KEY
RUN guardrails hub install hub://guardrails/regex_match
RUN guardrails hub install hub://guardrails/toxic_language
Expected behavior
it should be installing regexMatch and toxicLanguage validators but not working
Library version:
Version 0.5.15
The text was updated successfully, but these errors were encountered: