Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket API cut line after 5000 chars

Ivan Pohosov March 30, 2020

I try to get the file content via Bitbucket API but there are so long lines and they are cut on 5000 char.

Does API have some flag to not cut lines?

 

url = "https://{}:{}@bit.text.com/rest/api/latest/projects/PROJECT/repos/" \
"REPO/browse/src/file.js?at=develop"

requests.get(url.format(config.GIT_USERNAME, config.GIT_PASSWORD)).text

1 answer

0 votes
Jason Cagle
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 5, 2025

Did you ever find an answer to this? If so, could you share, please?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events