There's something wrong with Bitbucket's API

I've been trying to create a new repository inside one of my teams' projects, but although I'm including the project's key/uuid in the request body, I'm getting an error: "string indices must be integers"

I tried everything & just can't manage to make it work. Can somebody give me hand with that issue. It's really pissing me off by now.

1 answer

Hi Kelvin,

The key/uuid might be quoted and the request sees it as a string. Try removing quotes around it. 

You can also try stashy .. how to connect

https://community.atlassian.com/t5/Bitbucket-questions/How-to-create-project-in-bit-bucket-using-bit-bucket-REST-API/qaq-p/704125#M22305

bitbucket.repos.Repos.create("PROJ_KEY", "REPO_NAME")

Thanks for the reply, but I eventually managed to fix the issue. It's my fault I guess. I was specifying the content-type in the request header. All I had to do was remove that & it worked fine.

Now my request body has the attributes I want & the headers only have the authorization.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

691 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you