atlassian-python-api
atlassian-python-api copied to clipboard
Confluence Cloud Python API connection Timeouts
Hello,
I am currently working on a Python script that connects to the Confluence cloud and gets the space data using Spaceid. I am getting connection timeout for all functions using the confluence authentication object. Here is the code:
confluence = Confluence("https://one-atlas-umzg.atlassian.net/wiki", username=username, password=password, cloud=True, timeout=245) print(confluence.get_space("~spaceid"))
Error: HTTPSConnectionPool(host='one-atlas-umzg.atlassian.net', port=443): Max retries exceeded with url: /wiki/rest/api/space/~spaceid?expand=description.plain%2Chomepage (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002032908A750>, 'Connection to one-atlas-umzg.atlassian.net timed out. (connect timeout=245)'))
Note: I have replaced spaceid with string "spaceid" both in the code and in the error message