Currently I'm getting this error when I tried to update the confluence page.
error: HTTP RESONPONSE 500
this is my code:
################
import re
import bs4
import requests
headers={'Content-Type': 'application/json',<span>'Authorization'</span>: <span>'Basic token'</span>}
dataurl=<span>'https://page/wiki/rest/api/content/1212121212?expand=body.storage'</span>contentx = requests.get(address, headers=headers).json()
content=contentx['body']['storage']['value']
regex = re.compile(r"<td>i need to update this</td>")
new_content = regex.sub("<td>updated</td>", content)
soupx = bs4.BeautifulSoup(new_content, features="html.parser")
soup=str(soupx)
payload={'id':'121212121212,'type':'page','title':'testing12121212','space':{'key':'space'},"body":{"storage":{"value":soup,"representation":"storage"}},'version':{'number':2}}
##########
i couldn't find what is the issue.
can someone help on this