Skip to content

[confluence] update_or_create fails with 500 error since version 1.16.0 #534

@lars-wolter

Description

@lars-wolter

Hi,

we do updating pages in Confluence by using update_or_create method. This worked fine with atlassian-python-api
version 1.15.6. Since version 1.16.0 the same code breaks by 500 error:

response = self.confluence.update_or_create(parent_id=parentPageId, title=self.page.get('title'), body=body, representation='storage')
File "/usr/local/lib/python3.6/dist-packages/atlassian/confluence.py", line 1197, in update_or_create version_comment=version_comment)
File "/usr/local/lib/python3.6/dist-packages/atlassian/confluence.py", line 1062, in update_page response = self.put('rest/api/content/{0}'.format(page_id), data=data)
File "/usr/local/lib/python3.6/dist-packages/atlassian/rest_client.py", line 207, in put trailing=trailing)
File "/usr/local/lib/python3.6/dist-packages/atlassian/rest_client.py", line 161, in request response.raise_for_status()
File "/usr/local/lib/python3.6/dist-packages/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: for url: https://******/rest/api/content/112226271

I don't find anything about this issue yet. Can you tell me what has changed? Or is it even a bug?

Greetings
Lars

Metadata

Metadata

Assignees

Labels

bugconfluenceAtlassian Confluence (Cloud, Server or Dataceneter)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions