digiLab-ai / twinLab-Interface

Augmenting engineering workflows with Probabilistic Machine Learning
https://twinlab.ai/
10 stars 0 forks source link

Authentication error when uploading a dataset #1

Closed EthanHargrove closed 4 months ago

EthanHargrove commented 4 months ago

Describe the bug When following the Getting Started guide in the documentation, a 'bad auth : authentication failed' error message is encountered. This error message is received when using a .env file and when using set_api_key().

What were you trying to do? The error occurred when trying to upload the test dataset.

What was the expected behaviour? A return indicated a successful upload.

What actually happened? A Non-success status code print and a raised exception

Exception: Error Code: 401 - {'detail': "bad auth : authentication failed, full error: {'ok': 0, 'errmsg': 'bad auth : authentication failed', 'code': 8000, 'codeName': 'AtlasError'}"}

To Reproduce Running:

echo "TWINLAB_API_KEY=<my_api_key>" > .env
import twinlab as tl
import pandas as pd

df = pd.DataFrame({"X": [1, 2, 3, 4], "y": [1, 4, 9, 16]})
dataset = tl.Dataset("test-data")
dataset.upload(df)

Screenshots The return when importing (with repository name redacted): Screenshot 2024-06-12 at 12 09 18 pm

The returned error: Screenshot 2024-06-12 at 12 07 37 pm

Additional context The code is being run in a Jupyter notebook on a Mac

alexander-mead commented 4 months ago

Thanks for your issue. We currently have the same problem on our end (so it's not specific to your account). We're working on a fix now and we will get back to you as soon as possible.

alexander-mead commented 4 months ago

That should be fixed now. We lost connection to the database, but we've restored it now. Please let me know if anything else goes wrong!