guardrails-ai / guardrails

Adding guardrails to large language models.

Home Page:https://www.guardrailsai.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: Guardrails hub token not getting generated

vikeshpandey opened this issue · comments

Describe the bug
Not able to generate the hub token

To Reproduce
Steps to reproduce the behavior:
Follow the installation steps:
guardrails configure

It asks for the token and provides the URL: https://hub.guardrailsai.com/tokens to retrieve the token.

It gives the error: "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"

On this link, i see the error:

Expected behavior
A token should have been generated

Library version:
Version (e.g. 0.1.5): latest

Additional context

@vikeshpandey unfortunately I can't reproduce this issue -- I just signed up with a fresh account to get tokens. Can you confirm you're logged in to the hub before accessing https://hub.guardrailsai.com/tokens?

There’s definitely a bug here in that I’m able to access the page without being logged in. I get this page when that happens. This goes away once I log in

image

I’ll go ahead and fix this today/tomorrow. For now the workaround is to sign in before visiting this page.

Please let me know if this is different from what you are seeing.

Sign in page is also down. infact this is what i see when i hit the token generation URL:
Screenshot 2024-03-23 at 21 22 51

  1. Pushed up a fix for the missing token issue
  2. What region are you in? I'm not able to see a 404 like that

Just pushed up an additional fix to redirect login to the tokens page when signing in from the tokens page

Yes, its works now. Thanks. I see the signin page and upon signin I am successfully able to generate the API key.