lvermeulen / Bitbucket.Net

C# client for Atlassian Bitbucket Server
MIT License
32 stars 18 forks source link

Deletion of Branches fails with 415 #6

Closed fgather closed 5 years ago

fgather commented 5 years ago

Hi,

I stumbled upon a problem when deleting branches using DeleteRepoBranchAsync:

Unhandled Exception: System.AggregateException: One or more errors occurred. (DELETE https://*bitbucketserver*/rest/branch-utils/1.0/projects/*proj*/repos/*repo*/branches failed with status code 415 ().) ---> Flurl.Http.FlurlHttpException: DELETE https://*bitbucketserver*/rest/branch-utils/1.0/projects/*proj*/repos/*repo*/branches failed with status code 415 ().

Any idea why this blows up? I've got no fancy characters in the branch name and according to https://docs.atlassian.com/bitbucket-server/rest/5.9.0/bitbucket-rest.html everything should be fine :(

Thx in advance!

lvermeulen commented 5 years ago

That's an invalid media type error, fixed in release fixed in release 2.1.3

fgather commented 5 years ago

Wow, that was quick, thx for the fast fix!

lvermeulen commented 5 years ago

No problem. :-)