Python fails connecting to JIRA Cloud, triggering timeout errors though other clients work. Likely an SSL issue; see the new sample code below.
import httpx
import json
endpoint = "https://example.atlassian.net/rest/api/3/issue/XYZ-001"
login = ("[email protected]", "new_token")
req_headers = {"Accept": "application/json"}
result = httpx.get(endpoint, auth=login, headers=req_headers)
print(json.dumps(result.json(), indent=2))
hey, maybe try using verify=False with your req. some ssl stuff might be failing. check your certs even though others work and see if that fixes it
In my experience, timeouts in Python connections to JIRA Cloud may also be related to improperly configured networking parameters rather than just SSL verifications. I encountered a similar issue and resolved it by explicitly setting a reasonable timeout in the httpx.get call. Additionally, I found that updating my dependency packages ensured better compatibility with JIRA’s APIs. It might be worthwhile to check your network settings, proxy configurations, or firewall rules that could be delaying the connection and causing the timeouts you’re experiencing.