Hi Community,
When I'm trying to attach screen shot/ document like text or excel/word in the comment field it is throwing an error. Could you please help me the work around for this issue.
Thanks.
Maybe try https rather than http in your URL?
I checked. It's http what IT uses. Not https.
Besides, it works with CURL command natively on command prompt when I give :
curl -D- -u username:username -X GET -H "Content-Type: application/json" http://x.x.x.x:8080/issue/rest/api/2/search?jql=project+in+('projectname')+AND+reporter+in+('username')
Also, python requests works too when I give :
import requests
url = "http://x.x.x.x/issue/rest/api/2/search?jql=project+in+('projectname')+AND+reporter+in+('username')"
response = (requests.get(url, auth=('username', 'username')).content)
data = json.loads(response)
But we want to use 'import jira' method using jira python module because as it turns out with 'requests', many customfields are ridiculously nested dictionaries which is next to impossible to work with. Using jira's own python module made this much easier, but I am unable to do simple thing like list projects.
When I changed the port to 8080 I get this following error. (My original question used 9090 as port address. I masked the IP address below for pasting purpose), :
WARNING:root:HTTPConnectionPool(host='x.x.x.x', port=8080): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001DF4A2B4B38>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',)) while doing GET http://x.x.x.x:8080/rest/api/2/serverInfo [{'params': None, 'headers': {'User-Agent': 'python-requests/2.20.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json,*.*;q=0.9', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got ConnectionError [HTTPConnectionPool(host='x.x.x.x', port=8080): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001DF4A2B4B38>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))] errno:None on GET http://x.x.x.x:8080/rest/api/2/serverInfo
{'response': None, 'request': <PreparedRequest [GET]>}\{'response': None, 'request': <PreparedRequest [GET]>}
WARNING:root:Got recoverable error from GET http://x.x.x.x:8080/rest/api/2/serverInfo, will retry [1/3] in 5.291279752381344s. Err: HTTPConnectionPool(host='x.x.x.x', port=8080): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001DF4A2B4B38>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.