The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Why am I getting 500 error while trying to edit a file?

Nimrod Golan
November 14, 2023

I'm trying to edit an existing branch file according the following doc.

I'm using Postman like the following:

  1. Content-Type -> multipart/form-data
  2. Body -> form-data with the following key-values pairs
    1. branch : <my-branch>
    2. content : "Updating new content"
    3. message: "new commit message"
    4. sourceCommitId : <commitId>
  3. PUT call with URL: <server-path>/rest/api/latest/projects/<project-key>/repos/<repo-slug>/browse/README.md

and I'm getting back the following not informative error message:

 

{
    "errors": [
        {
            "context": null,
            "message": "An error occurred while processing the request. Check the server logs for more information.",
            "exceptionName": null
        }
    ]
}
What am I doing wrong?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events