Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events