Issue with using branch_name / commit_oid in data_models API endpoint

Hello!

We’re working on setting up a CI/CD script to automatically validate SQL fields in Holistics. In order to do that, we’re relying on the data_models API endpoint. We’re almost there but are running into an issue. When we don’t specify the branch_name or commit_oid, then the API call works fine. But when we specify the branch_name or commit_oid, then we get the a 500 response with an error that says “InternalHolisticsError”. Would really appreciate some help on this! I’m giving an example of the debug info below for one call each with branch_name and commit_oid:

Example of the response and debug info when we specify branch_name

{
    "type": "InternalHolisticsError",
    "message": "Something went wrong on our server. Debug info 20241002150915_wpo83"
}

Example of the response and debug info when we specify commit_oid

{
    "type": "InternalHolisticsError",
    "message": "Something went wrong on our server. Debug info 20241002151058_4x0kxb"
}

Thanks in advance,
Anya

1 Like

Hi @anya.conti

Thank you for reporting this to us and apologize for any inconvenience this may have caused. We are investigating the issue and will get back to you soon.

Best Regards,

1 Like

Hi @anya.conti,

I think the branch although exists in Github, but it’s not available in Holistics.

May I confirm that you created the branch outside Holistics and that you haven’t logged into Holistics and switched to that branch?

If that is the case, then let us see how to directly fetch that branch from Github to support this case.

Best,
Huy Vu

Hi Huy,

I just opened holistics and switched to the branch and ensured the commit is showing up there and am still running into the same issue.

I also made sure I don’t have any uncommitted changes in holistics before calling the API, so it means it’s not an issue where my user can’t switch branches because I have uncommitted changes.

I also tested on a branch that’s identical to production, so I don’t think it’s an AML compilation error or anything.

All the best,
Anya