Error 500 on Commit API v2
# help
w
Hi I am trying to commit a liveboard from one branch to another. Here is the code I'm using: https://gist.github.com/wallyflops/9d68b4cd1d94dae4f610e192e1fcfc63 Here is the error I'm getting
Failed to commit. Status code: 500
The overall flow is I'm: - Getting a bearer token from https://viooh-dev.thoughtspot.cloud/api/rest/2.0/auth/token/full - Using the Commit endpoint https://viooh-dev.thoughtspot.cloud/api/rest/2.0/vcs/git/branches/commit
s
And if you try to achieve the same via Developer Section (not via your script), is it working?
There are a few things you need to take care of before hitting git/branches/commit api. Please checkout https://developers.thoughtspot.com/docs/git-configuration#_configure_git_repository
w
Sorry i get the same error in the playground
just on a call and then ill take a proper look at this doc
s
yes sure, even after following the doc you get into some trouble, let us know.
w
I think in need to refine my problem, I am just doing a proof-of-concept How can I hit this endpoint successfully, I have a dev/main branch on my Git and Thoughtspot is connected as per docs.
I think im missing the mapping file, ill try add that