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.
@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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.