Fix subtle auth sequencing issue#44
Merged
Merged
Conversation
rosbo
reviewed
May 28, 2026
| if not kaggle_json or not kaggle_json.strip(): | ||
| return None | ||
|
|
||
| api_key_data = json.loads(kaggle_json) |
Contributor
There was a problem hiding this comment.
How does this relate to setting the config? I am not sure I follow. This seems it would prevent failure if the kaggle.json file is malformed.
kaggle config set -n competition -v <competition-slug>
Contributor
There was a problem hiding this comment.
Now I get it, kaggle config set is saving it's value in kaggle.json.
rosbo
approved these changes
May 28, 2026
| username = api_key_data["username"] | ||
| api_key = api_key_data["key"] | ||
| return username, api_key | ||
| try: |
Contributor
There was a problem hiding this comment.
Can you add a command here saying
kaggle config setsaves value in thekaggle.jsonfile. The credentials may not be available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Kaggle/kaggle-cli#1009