Hello Everyone , I am encountering a 500 Internal Server Error while trying to add a comment to a pull request using the Bitbucket API. I have been using the following endpoint and request format:
Endpoint: POST <a href="https://api.bitbucket.org/2.0/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7BpullRequestId%7D/comments" target="_blank" rel="nofollow noopener noreferrer">https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pullRequestId}/comments</a>
Request Body:
{ "content": { "raw": "Test comment from bot" } }
Details:
- Workspace:
{workspace} - Repository Slug:
{repo_slug} - Pull Request ID:
{pullRequestId} - Error ID from Response:
f9f2948716a144c3927b477d12992011
Issue: I receive the following error response:
{ "type": "error",
"error": { "message": "Something went wrong",
"id": "f9f2948716a144c3927b477d12992011"
} }
I have verified that:
- The request URL and payload format are correct.
- The payload meets the API’s specifications.
- I am not exceeding any API rate limits.
Could you please help me understand what might be causing this error and how I can resolve it?
THANK YOU.