Skip to content

[Confluence] 415 Client Error on updating page #1114

Open
@MusicDev33

Description

@MusicDev33

Python 3.10
Running latest release of the API (3.32.2)

When I try to use the Confluence update_page method, I keep getting a 415 error.

Here's how I'm using it:

body = 'test'

pageId  = confluence.get_page_id(spacename, title)
confluence.update_page(pageId, title, body)

I've checked for the more common issues that people tend to have, and I am for sure using HTTPS.
I saw a previous issue (#1080) that seemed to have this problem, so I went into my local site-packages and updated confluence.py at line 1652 (should be a self.put call). I added headers={"Accept": "application/json", "Content-Type": "application/json"} to the PUT call and I'm still getting the error.

I also tried just grabbing the page content and just replacing a word with 'test' and seeing if that did anything but I still get the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confluenceAtlassian 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