Forums

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

Confluence Bugs

erikka_innes
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!
July 17, 2026

Here are my current issues: 

1. Why does Atlassian request a site URL if it is only going to state that it doesn't exist? I cut n pasted as well as manually typed the confluence address for my company and the response was it doesn't exist. 

2. When I use the Confluence APIs to retrieve page views, the recurring issue is that Confluence can't transform the stream to valid JSON. I have tried the documentation example as well. Here is the error: 

HTTP status: 500
{
"data": {
"authorized": true,
"errors": [],
"successful": true,
"valid": true
},
"message": "com.atlassian.confluence.api.service.exceptions.ecosystem.ServiceException: Unable to transform stream to valid JSON ",
"statusCode": 500
}

And here is a very basic code sample trying to test it for a single page ID. Authentication details aren't listed in the sample but assume that yes the API token is correct etc. (works fine for other types of calls). 

import json
import requests
from requests.auth import HTTPBasicAuth

page_id = "5723357766"

url = (
    f"{BASE_URL}/wiki/rest/api/analytics/"
    f"content/{page_id}/views"
)

auth = HTTPBasicAuth(EMAIL, API_TOKEN)

headers = {
    "Accept": "application/json"
}

response = requests.request(
    "GET",
    url,
    headers=headers,
    auth=auth
)

print("HTTP status:", response.status_code)

try:
    print(
        json.dumps(
            json.loads(response.text),
            sort_keys=True,
            indent=4,
            separators=(",", ": ")
        )
    )
except json.JSONDecodeError:
    print("Response was not valid JSON:")
    print(response.text)




2 answers

1 vote
Ajay _view26_
Community Champion
July 17, 2026

Hi @erikka_innes 

 

The fact that you're getting a 500 with "Unable to transform stream to valid JSON" while the response body simultaneously says "successful": true is a server-side serialization bug — it's not your code. You're not the only one hitting this. Another community member reported that around April 2025.

The API docs list it as an optional parameter. Unbounded requests against pages with large view histories seem to trigger the serialization failure more often. Can you try something like ?fromDate=2026-06-01 to limit the data range?

1 vote
Trudy P Claspill
Community Champion
July 17, 2026

Hello @erikka_innes 

Welcome to the Atlassian community.

Are you referring to the URL field in the Atlassian Support Portal where support cases can be opened? If so Atlassian restricts creation of support cases to people who are administrators of the Organization or the Application. If you aren't an admin at that level then you will get that message because it is not "finding" the specified URL under the list of sites which you administer.

If you contact your administrators they can open the support case for you and share it with you so that you can interact with support directly.

 

Can you print out the response as plain text rather than trying to process it as JSON?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events