Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error on REST API request - ConnectionResetError(10054, 'An existing connection was forcibly closed

My REST API request from Python to JIRA is failing is following error message:

Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None

 

time.sleep() is not solving the issue.

Any help would be appreciated.

 

2 answers

0 votes
Thomas Deiler Community Leader Apr 20, 2021

Dear @alexey sorochkin ,

this sounds crazy. Due to the nature of a REST call, which is stateless, a connection is never kept open longer.

Can you give me more details when this happens? Does this happen only for specific calls? POST, GET, PUT same?

So long

Thomas

It happens one GET call

Thomas Deiler Community Leader Apr 23, 2021

Ok. Which call exactly?

have you tried to send the REST call with a browser extension to verify if it works in general?

So long

Thomas

Thomas Deiler Community Leader Apr 23, 2021

Ok this means the REST API interface in Jira is not broken. :)

Is 

request.request()

from a library?

Yes from HTTP request library

Thomas Deiler Community Leader Apr 23, 2021

Do other GET request (eg. get all projects) work with this HTTP request library function?

Try GET /rest/api/2/project

So long

Thomas

No, nothing is working. Event simple attemp to GET jira url information immediately resulting in this error.

Thomas Deiler Community Leader Apr 23, 2021

And what about a PUT/POST requests?

e.g. PUT /rest/api/2/issue/{issueIdOrKey}/assignee ?

Has your code ever worked?

 

PUT and POST giving same error.

It worked up until few days ago and suddenly it started showing this error.

Thomas Deiler Community Leader Apr 23, 2021

Can you remember what has changed? A new SSL certificate pops up immedately into my mind, as a source of problems. Network changes? Host name changes?

We dont know yet, but thanks for ideas.

What network change can cause this kind of problem?

Thomas Deiler Community Leader Apr 27, 2021

Dear @alexey sorochkin ,

I have no clue about what could be the reason. But thinking logically, if your didn't change the Python script and Jira was also not manipulated, something in between must have been changed - the network (firewall, router, vpn, ...).

Probably there was a package / software upgrade on both client and server. Eg. a new Python lib / binary could react different than before.

So long

Thomas

So, yes we did couple of tests:

Its working from browser and postman

 

url = https://***jiraserver***/rest/api/2/issue/abc-123/?fields=issuelinks

response = requests.request("GET", url, auth=auth, headers=headers, data = payload, verify = False)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you