Skip to content

fix(kaggle): json parsing errors are silently swallowed in __parse_body #942

@huyhoang171106

Description

@huyhoang171106

Description

__parse_body catches all exceptions and returns {}. This hides malformed/invalid response payloads and converts hard failures into silent bad state, which can propagate incorrect behavior (e.g., missing required fields interpreted as absent data rather than parse failure).

Severity: high
File: src/kaggle/cli.py

Expected Behavior

The code should handle this case properly to avoid unexpected errors or degraded quality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions