Skip to content

bug: Method client.branch.diff_data() returns a 404 #325

Description

@BaptisteGi

Component

Python SDK

Infrahub SDK version

v1.9.1

Current Behavior

When I use the method client.branch.diff_data() I have a 404 error even tho the branch exists

Expected Behavior

I expect this method to work and return the diff

Steps to Reproduce

  • Spin Infrahub
  • Run the following python code:
from infrahub_sdk import InfrahubClientSync

client = InfrahubClientSync()

client.branch.create(branch_name="test-branch")

diff = client.branch.diff_data(branch_name="test-branch")

print(diff)

=> {'data': None, 'errors': [{'message': 'The requested endpoint /api/diff/databranch=test-branch&branch_only=true does not exist', 'extensions': {'code': 404}}]}

Additional Information

Either way this needs to be updated https://docs.infrahub.app/python-sdk/guides/branches#generating-a-diff-for-a-branch

Activity

  1. added theissue type on May 23, 2025
  2. added 2 commits that reference this issue on Aug 7, 2026
    f27d1b4
    46e16db
  3. saltas888 commented on Aug 11, 2026

    @saltas888
    Contributor

    Closed by #325

  4. added a commit that references this issue on Aug 19, 2026
    a592f7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

state/need-triageThis issue needs to be triagedtype/bugSomething isn't working as expected

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions