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

Struggling with Confluence REST API examples

FliceWater April 1, 2015

I'm trying to learn how to use Confluence's REST API. I used the example here in the doc, but it always returns "301 Moved Permanently". I thought it might be because the page had actually been moved, so I tried adding --location to the curl command from the example. Now I get '{"statusCode": 500, "message": "java.io.EOFException: No content to map to Object due to end of input"}'. What am I doing wrong?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

6 votes
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2015

Are you by any chance using HTTP where you should be using HTTPS? Or the other way around?

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2015

I converted my comment to an answer; you can approve it now :)

0 votes
FliceWater April 2, 2015

That was it! Thanks so much. Please do post an answer so I can give you the points for it. Also, if you're feeling charitable, please upvote my question--I'm currently limited to three posts per day until I reach 25 points, so even posting this comment to thank you is costly for me, given that I am a beginner and have many questions.

TAGS
AUG Leaders

Atlassian Community Events