Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When I'm trying attach a screen shot or a document in the Comment field it throws an error

Vishnu Vardhan Chenna
Contributor
October 24, 2023

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.

1 answer

0 votes
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 29, 2018

Maybe try https rather than http in your URL?

Max
October 29, 2018

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',))

Max
October 29, 2018

If it works for CURL and requests module with http, should it not work for jira module?

Max
October 29, 2018

I do not understand the errors, 

Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError

Suggest an answer

Log in or Sign up to answer