[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?
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.
- Pushed up a fix for the missing token issue
- 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.