Confluence 7.13.7 API Request Returns HTML Instead of JSON

Goonawardanar_R_N_W
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2024

In Confluence 7.13.7, my API calls are unexpectedly returning HTML content rather than JSON. I've checked my request headers and ensured Accept: application/json is included. Is there a known issue or configuration setting I might be missing that could cause this behavior?

image.png

 

 

2 answers

0 votes
Dmitrii Zhukov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2024

I have the same issue. Any updates?

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2024

Dear @Goonawardanar_R_N_W ,

before you proceed, I strongly recommend to upgrade to at least 7.19.x.

Nevertheless have you tried to copy & paste the REST GET call to a browser tab? Does it return also HTML instead of JSON?

Have you tried another REST client or browser extension?

Have you tried

https://example.com/rest/api/content/{id}

instead of

https://example.com/confluence/rest/api/content/{id}

https://docs.atlassian.com/ConfluenceServer/rest/7.13.7/#api/content-getContent 

Cya

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events