Skip to content

Unable to stop a build using the Python SDK #343

Closed
Visual-Regression-Tracker/sdk-python
#40

Description

@sd-yazzoom

When using the python SDK (but it looks like its not limited to the Python SDK alone), the stop build functionality no longer works as expected. When comparing the calls between what frontend sends and what the SDK sends, I noticed following difference:

UI:
Sends a PATCH call to /builds with body: {"isRunning":false}

SDK:
Sends a PATCH call to /builds with body: {}

The SDK call seems to work with older versions, but it looks like the {"isRunning":false} is now required?

Notes:
I noticed the Python SDK is outdated, but looking at other SDK's at least some other more up-to-date SDK's seem to do the same.

Activity

  1. mokhtardziri commented on Aug 14, 2026

    @mokhtardziri

    I opened a PR in the Python SDK repository for this issue : Visual-Regression-Tracker/sdk-python#37

  2. added a commit that references this issue on Oct 24, 2026
    77b1621
  3. added a commit that references this issue on Oct 24, 2026
    dd3ff47
  4. pashidlos commented on Oct 24, 2026

    @pashidlos
    Member

    Fixed in #410.

    Root cause: all released SDKs (sdk-js / agent-cypress, sdk-python, sdk-java) stop a build with PATCH /builds/:id and an empty body. The NestJS 11 / Express 5 upgrade (#336, api 5.1.0) dropped the fallback that treated an empty body as isRunning: false, so {} became a no-op and a missing body returned 500. #410 restores it, so existing SDK versions can stop builds again once you run the next api release.

    The SDKs now also send isRunning: false explicitly: sdk-python in Visual-Regression-Tracker/sdk-python#40 (merged), sdk-js in Visual-Regression-Tracker/sdk-js#345, sdk-java in Visual-Regression-Tracker/sdk-java#118.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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