Forums

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

Bitbucket REST API: Internal server error (500)

neomatrix369 June 22, 2019

I have been doing some REST calls to the Bitbucket Cloud server. In particular, closing Pull Requests via REST calls (https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/decline).

 

Although I kept getting this back:

result = {HttpResponse@2209}
statusCode = 500
statusText = "Internal Server Error"
headers = {Headers@2211} size = 18
rawBody = {ByteArrayInputStream@2212}
body = {JsonNode@2213} "{"type":"error","error":{"id":"b601567ddd4a4d2993ab1f6494fa160b","message":"Something went wrong"}}"

I'm working on the repo meterian-bot/ClientOfMutabilityDetector, where can I find more information about what is happening on this repo?

Can someone please let me know what this error could mean?

Some extra info: I'm using an App Password to make REST calls, the token has the right to read and write pull requests.

 

1 answer

0 votes
Eric Henry
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2019

@neomatrix369 - you definitely shouldn't be getting back 500s. Do you have any example requests you could share (be careful not to include auth params)?

It looks like it is having trouble with the pull request id.

Eric

neomatrix369 June 24, 2019

A helpful error message would have helped to identify that the call was invalid or incorrect, since this call is so simple it also leaves room for wide combination of calls which could be invald.

I can share a curl that I would add to the docs on the https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/decline

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events