A page created via API is not displayed with error "This editor does not support displaying this content"

Hello,

A page created on Confluence cloud via api using Atlassian Python API wrapper *1 is not displayed with error “This editor does not support displaying this content”.

With mouse on “?” icon, additional error is shown, “Content is not available in this editor, this will be preserved when you edit and save”

*1 Confluence module — Atlassian Python API 3.14.0 documentation

Pages created before 25th Aug are displayed correctly.
When I tried to create a page with content the same as one of them, it resulted in the same error.
The script which process using the wrapper has not been changed, so it seems the behavior of the API has changed.

What are the possible causes?
Or how can I find out what is wrong?


(Add some more)

I tried and added " editor=‘v2’ " in the parameter in my script as below,

confluence.create_page(space=‘space name’, title=‘new page name’, body=BodyValuable, parent_id=ParentIDValuable, editor=‘v2’)

when I took a look at

[CONFCLOUD-68057]
[CONFCLOUD-68057] Creating a page via API doesn't load the New Editing Experience - Create and track feature requests for Atlassian products.

but result was the same.

Hi
Not really an answer, but I suspect this is related - [CONFCLOUD-68057] Creating a page via API doesn't load the New Editing Experience - Create and track feature requests for Atlassian products.

Ask Giuliano on the ticket, may be it will be faster answered

Alex

Thank you @sash011 , I’ll try

I tried the official REST call, but resulted in the same error.

  1. First I did as a sample at : The Confluence Cloud REST API (atlassian.com)
headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Basic " + <access token>
}

payload = json.dumps( {
    "title": <page name>,
    "type": "page",
    "space": {
        "key": <space name>
    },
    "status": "current",
    "ancestors": [
        {
            "id": <parent page ID>
        }
    ],
    "body": {
        "storage": {
            "value": <body text>,
            "representation": "storage"
        },
    }    
} )
  1. Then I added below into payload as the workaround in [CONFCLOUD-68057] Creating a page via API doesn't load the New Editing Experience - Create and track feature requests for Atlassian products. :
    "metadata": {
        "properties": {
            "editor": {
                "key": "editor",
                "value": "v2"
            }
        }
    }

In both cases, page was created but was not displayed correctly, showing the same error, “This editor does not support displaying this content”.

Now it doesn’t seems to be a problem of the wrapper *1.
What should I do next?

1 Like

Hi @gdecampos

I tried the official REST API, and ended up with the same error.
Could you kindly take a look at this?

Thank you in advance,
Masaya