atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.34k stars 661 forks source link

Confluence Cloud Python API connection Timeouts #1389

Open harish097 opened 4 months ago

harish097 commented 4 months ago

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