Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confluence Cloud Python API connection Timeouts #1389

Open
harish097 opened this issue May 16, 2024 · 0 comments
Open

Confluence Cloud Python API connection Timeouts #1389

harish097 opened this issue May 16, 2024 · 0 comments

Comments

@harish097
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant