Skip to content

fix (cli): print friendly auth instructions on 401 / missing creds#1007

Merged
bovard merged 2 commits into
mainfrom
friendly-auth-error
May 6, 2026
Merged

fix (cli): print friendly auth instructions on 401 / missing creds#1007
bovard merged 2 commits into
mainfrom
friendly-auth-error

Conversation

@bovard
Copy link
Copy Markdown
Member

@bovard bovard commented May 6, 2026

Replaces the terse "you must authenticate" message and the bare HTTPError traceback on a 401 with a single helper that lists the three ways to authenticate (OAuth via kaggle auth login, KAGGLE_API_TOKEN env var, or ~/.kaggle/access_token file).

Replaces the terse "you must authenticate" message and the bare HTTPError
traceback on a 401 with a single helper that lists the three ways to
authenticate (OAuth via `kaggle auth login`, KAGGLE_API_TOKEN env var,
or ~/.kaggle/access_token file).
@bovard bovard requested a review from stevemessick May 6, 2026 19:55
Comment thread src/kaggle/api/kaggle_api_extended.py Outdated
@bovard bovard merged commit 3c3a5e8 into main May 6, 2026
10 checks passed
@bovard bovard deleted the friendly-auth-error branch May 6, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants