Using POSTMAN , everything is fine :
I pass the same headers,params,... to superagent as following :
const superagent = require('superagent');
const grab = require('ps-grab');
superagent.get('https://x.rathath.net/issue_statuses.json')
.set({
'Accept': 'application/json',
'Content-Type': 'application/json'
})
.auth(grab('--user'),grab('--password'))
.send({})
.end((error,response)=>{
console.log(response.text);
});
However it is failed !
I have a doubt in : superagent+Authorization Header+ OSX .. I mean compatibility of those three .
Indeed, I run the same javascript snippet on Redhat machine and it works fine.