Access problem for the study of an issue (Error 403)


I have a little problem with my script.

I’m using the documentation of Jira, I want returns the details for an issue thanks to the method ‘get issue’. I’m using NodeJS. (

But I have this error : ( Response 403) “Failed to parse Connect Session Auth Token”, normally I have the permission for access but have always same error

I’m using my API token from but the same error persists…
When I put my url into the browser, I have many values ​​that are displayed but programmaticaly side, the same error is display …

// This code sample uses the 'request' library:
var request = require('request');

var options = {
   method: 'GET',
   url: '',
   auth: { bearer: '<***>' },
   headers: {
      'Accept': 'application/json'

request(options, function (error, response, body) {
   if (error) throw new Error(error);
      'Response: ' + response.statusCode + ' ' + response.statusMessage


Thank you in advance for your help.

1 Like

Hello @noreez.ulhassanshah,

It seems you’re using basic auth, one way you can do is:

  1. Remove this part auth: { bearer: '&lt;***&gt;' },
  2. In your headers add 'Authorization': 'Basic <Base64 encoded email:apiToken pair>

I did a quick spike and this approach worked for me.




Thank you for your help

Best regards,

1 Like

Thank you ,
Work for me .
You can use bellow link also for Base64 :