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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Updating a page (PUT) via REST API returns 500 Interval Server "No content to map to Object due..."

Hi there,

I try to use a PUT request on a page via REST API on a Confluence 6.15.4.

The call is:

wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--header 'authorization: Basic xsdghseuhfeshfwhefhkjf' \
--body-data '{\n "minorEdit": "true",\n "id": "182353945",\n "type": "page",\n "status": "current",\n "title": "Sediment Echo Sounder (Parasound P70)",\n "space": {\n "id": 286982148,\n "key": "EFPW"\n },\n "body": {\n "storage": {\n "value": "<p>Test</p>",\n "representation": "storage"\n }\n },\n "version": {\n "number": 50,\n "message": "Automatically updated by Sensor2Confluence-Transporter (polarstern@binf02p165)"\n }\n}\n' \
--output-document \
- https://localhost/confluence/rest/api/content/182353945

The return is:

"statusCode": 500,
"message": "",
"reason": "Internal Server Error"

The log file in Confluence contains:

2019-08-28 10:25:20,470 ERROR [http-nio-8090-exec-63] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
-- url: /rest/api/content/182353945 | traceId: 253407b78f80aa52 | userName: xxxxxxx No content to map to Object due to end of input
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(
at com.sun.jersey.spi.container.ContainerRequest.getEntity(
at com.sun.jersey.spi.container.AdaptingContainerRequest.getEntity(
at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(
at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(


Has anyone an idea? I believe it does not work since the last upgrade. But I cannot find any error in the JSON itself. A GET to that URL works fine. If I change username to a non-existing, I get an 401 Unauthorized. So everything as expected...



2 answers

Try curl! 

Okay I solved the problem.

The problem was indeed a wrong URL I used.
I used https://localhost/confluence/rest/api.
Correct or new (?) is https://localhost/rest/api.

The problem is there is still some kind of redirect from /confluence/rest to /rest so a GET for example worked fine. *But* the redirect somehow cuts off all PUT parameters so every PUT request sent to the API was empty. Really stupid...

CURL seems to work, but WGET and my Python requests-module which was the original intention to use failed.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you