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

Creation of JSESSIONID - Curl (7) Failed to connect to xxxx.attlassian.net port 8090: Timed out

Deleted user May 22, 2020

Hi Community,

I'm trying to connect my Jira Cloud from Qlik Sense (installed on AWS):

Here're the steps I'm following:

  • In order to manage the Jira connection from Qlik Sense, I've to call the Jira REST API. Here's an example (this is working from a web browser): 

https://xxxxxx.atlassian.net/rest/api/latest/search/?jql=project=XXXX&fields=summary,description,status,created

By testing this connection from Qlik Sense, I'm getting the attached error message.

  • Based on my investigation, I've seen that I've to specify a JSESSIONID inside the REST API Call.

Here's the link I'm following in order to create a JSESSIONID: https://developer.atlassian.com/server/jira/platform/cookie-based-authentication/?_ga=2.140616625.2025560691.1590131812-631798207.1575300490

I'm using the below curl command: curl -X POST https://XXXXX.atlassian.net:8090/jira/rest/auth/1/session -H "content-type: application/json" -d "{"username": "XXXXXX", "password": "XXXX!"}"

And getting the following error message: curl: (7) Failed to connect to finologee.atlassian.net port 8090: Timed out

 

What is wrong here? I'm able to reach my Jira instance from a web browser but this is not working from a curl command :/

Thanks a lot for your help,

Simon

 

image.png

1 answer

0 votes
Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2020

Hi @[deleted] , 

 

I'm seeing one obvious error here, in your curl command : you should not use the "8090" port to connect to your site. You curl command should look like :

 

curl -X POST https://XXXXX.atlassian.net/jira/rest/auth/1/session -H "content-type: application/json" -d "{"username": "XXXXXX", "password": "XXXX!"}"

 

Let me know if this helps, 

 

--Alexis

Deleted user May 22, 2020

Thanks for your feedback Alexis.

By removing the port, here's the result: 

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you&#39;ve found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you&#39;ve found a dead link.</h1><ul><li>Go back to the <a href="javascript&colon;window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">


<ul class="atlassian-footer">
<li>
Atlassian JIRA <a class="seo-link" href="https://www.atlassian.com/software/jira">Project Management Software</a>

 

<span id="footer-build-information">(v1001.0.0-SNAPSHOT#100127-<span title='ff24dc8ebb7c671d6f98aa545c62f3b905b0d71c' data-commit-id='ff24dc8ebb7c671d6f98aa545c62f3b905b0d71c}'>sha1:ff24dc8</span>)</span>
</li>
<li>
<a id="about-link" href="/secure/AboutPage.jspa">About JIRA</a>
</li>
<li>
<a id="footer-report-problem-link" href="/secure/ContactAdministrators!default.jspa">Report a problem</a>
</li>
</ul>
<div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>

 

Do you have an idea about what's missing/wrong?

 

Simon

Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2020

That means you're reaching the Atlassian cloud site. Now you need to get the proper REST API. 

You should have a look at this documentation for authentication : https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events