POST request at https://login.eveonline.com/oauth/token for getting access tokens is working well, but GET request at esi.tech.ccp.is for gettind any data only recieve connect ETIMEDOUT 35.186.214.164:443
I tried dozens of http-request libraries - all with the same result.
The code:
var options = {
host: 'esi.tech.ccp.is',
method: 'GET',
path: '/v2/characters/'+charID+'/online/?datasource=tranquility',
headers: {
'Host': 'esi.tech.ccp.is',
'Authorization': 'Bearer ' + token
}
};
var request_test = https.request(options, function (response) {
response.on('data', function (data) {
console.log(BODY: ${data});
console.log(data.toString('utf8'));
});
response.on('end', function () {
console.log('');
});
});
request_test.on('error', function (e) {
console.log('Problem with request: ' + e.message);
});
I tried different headers, different styles of URL-formatting, http/httpS, google said it can be proxy - i tried adding it too.
This is a networking issue, your connections to the cdn are not going through.
Are you reusing your client or making a new connection for each request? If you make too many connections in a time period to the cdn, you will get blacklisted temporarily.
It could also be the bad header as suggested above causing a protocol error.