confluencebuilder icon indicating copy to clipboard operation
confluencebuilder copied to clipboard

"Unsupported Confluence API call" when using versions >2.4.0

Open massdosage opened this issue 1 year ago • 8 comments

We use Sphinx and this extension to convert a number of .md and .rst files to HTML and then upload the files to Confluence. We have used this across a wide variety of projects with success for a number of years. We recently moved to the 2.5.0/1/2 versions and consistently get the below error which goes away if we downgrade to version 2.4.0. Looking at the CHANGELOG my guess is there is some bug talking to one of the v2 APIs. Happy to provide more information or run certain follow up steps if that would help you debug the root cause.

sphinxcontrib.confluencebuilder error:
---
Unsupported Confluence API call
An unsupported Confluence API call has been made. See the following
details for more information:
REQ: PUT
RSP: 400
URL: https://REDACTED.atlassian.net/wiki/
API: api/v2/pages/REDACTED_ID/properties
DATA: {
  "errors": [
    {
      "status": 400,
      "code": "INVALID_REQUEST_PARAMETER",
      "title": "Cannot update content property. Property : JsonContentProperty{id='JsonContentPropertyId{id=A_DIFFERENT_REDACTED_ID}', key='content-appearance-published', content=ExpandedReference{idProperties={id=ContentId{id=REDACTED_ID}, status=current, version=CollapsedReference{idProperties={number=198}, referentClass=class com.atlassian.confluence.api.model.content.Version}}, of=some(Content{id='ContentId{id=REDACTED_ID}', type=page, title='REDACTED PAGE TITLE', status=current, space=CollapsedReference{idProperties={key=DATA}, referentClass=class com.atlassian.confluence.api.model.content.Space}, history=CollapsedReference{idProperties={contentParent=CollapsedReference{idProperties={id=ContentId{id=REDACTED_ID}, status=current, version=CollapsedReference{idProperties={number=198}, referentClass=class com.atlassian.confluence.api.model.content.Version}}, referentClass=class com.atlassian.confluence.api.model.content.Content}}, referentClass=class com.atlassian.confluence.api.model.content.History}, version=CollapsedReference{idProperties={number=198}, referentClass=class com.atlassian.confluence.api.model.content.Version}, ancestors=null (CollapsedList), container=CollapsedReference{idProperties={key=DATA}, referentClass=class com.atlassian.confluence.api.model.content.Space}, childTypes=null (CollapsedMap)})}, version=Version{by=null, when=null, message='', number=2, syncRev='null', syncRevSource='null', ncsStepVersion='null', ncsStepVersionSource='null', confRev='null', content=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.Content}}} , isSuccessful: false, isAuthorized: true, isValid: false, hasErrors: true, Errors: \"jsonproperty.invalid.id\"",
      "detail": null
    }
  ]
}

massdosage avatar Jun 26 '24 13:06 massdosage