Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.01k stars 1.06k forks source link

Missing submission error codes using `api.competition_submissions()` #509

Open RobMulla opened 9 months ago

RobMulla commented 9 months ago

Recently (in the last few months) the api.competition_submissions() is showing blank values for these two values:

Previously the api would return the correct error names, similar to what is on the website. For example: Evaluation Exception: Inference time cap exceeded.

Code to replicate the issue:

from kaggle.api.kaggle_api_extended import KaggleApi
COMPETITION = "competition-name" # Change to competition with errored submissions

api = KaggleApi()
api.authenticate()
for submission in api.competition_submissions(COMPETITION):
    r = vars(submission)
    # These are always blank even if there is an error code on the website
    print(r['errorDescriptionNullable'], r['errorDescription'])