Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

"read ECONNRESET" error when attempting to make an issue from the API

Attempting to use the jira-cloud api to make an issue in Jira. This works on my local.

When running via my API (hosted in AWS). I get ECONNRESET, which from my research means the server closed the socket.

How do I get around this?

const { data } = await `${process.env.BASE_URL}/rest/api/3/issue`, 
Authorization: `Basic ${process.env.SECRET_JIRA_TOKEN}`,
"Content-Type": "application/json",
Accept: "*/*", } ); 


*Code if needed 

1 answer

Is this the same question that you asked 4 days ago in this Bit Bucket thread?

I'm not sure what you mean by the Jira API being 'hosted' in AWS. Do you mean you are executing your code from within a VM in AWS as per your other question?

Can you do a GET access to the same REST API endpoint via a web browser in that VM using the same credentials? That will at least test the port is open.

What other tests have you done to try and isolate the problem?

Not the same. New Error.

Haven't tried anything other than running my code. My API calls to Jira Cloud to make the request. Didn't think there was a good way to test the request from my API.

OK, I understand. Well, good luck with trying to find the cause of the problem with your API.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,284 views 0 3
Read article

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