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.
Community moderators have prevented the ability to post new answers.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.