Open LucaMingarelli opened 10 months ago
Hello @LucaMingarelli , could you share the logs please? looks like we need to wrap up a new version
Hi @gonchik, by logs you mean the traceback? In case here it is below, but please let me know if you meant something else
Traceback (most recent call last):
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\IPython\core\interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-23-df817a7ca8fb>", line 1, in <module>
confluence.get_content_history_by_version_number(content_id=content_id, version_number=2)
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\confluence.py", line 1460, in get_content_history_by_version_number
return self.get(url)
^^^^^^^^^^^^^
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\rest_client.py", line 285, in get
response = self.request(
^^^^^^^^^^^^^
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\rest_client.py", line 257, in request
self.raise_for_status(response)
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\confluence.py", line 3151, in raise_for_status
raise HTTPError(error_msg, response=response)
requests.exceptions.HTTPError: null for uri: https://confluence.ecb.europa.eu/rest/api/content/247714020/version/2
confluence.remove_content_history_in_cloud(page_id=int(page_id), version_id=2)
Traceback (most recent call last):
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\IPython\core\interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-24-314262664ece>", line 1, in <module>
confluence.remove_content_history_in_cloud(page_id=int(page_id), version_id=2)
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\confluence.py", line 1494, in remove_content_history_in_cloud
self.delete(url)
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\rest_client.py", line 449, in delete
response = self.request(
^^^^^^^^^^^^^
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\rest_client.py", line 257, in request
self.raise_for_status(response)
File "C:\Mambaforge\envs\Python3.11\Lib\site-packages\atlassian\confluence.py", line 3151, in raise_for_status
raise HTTPError(error_msg, response=response)
requests.exceptions.HTTPError: null for uri: https://confluence.ecb.europa.eu/rest/api/content/247701672/version/2
For the record, I get the same error also for
confluence.get_content_history_by_version_number(content_id=content_id, version_number=2)
This instead correctly returns a dictionary with relevant info:
confluence.get_content_history(content_id=content_id)
remove_page_history
andremove_content_history_in_cloud
fail with errorWhen looking inside the module, the request returns a 404 status