Hello,
My third party app (that’s been there for years) is getting error 1020 all of a sudden.
What do?
Hello,
My third party app (that’s been there for years) is getting error 1020 all of a sudden.
What do?
You’re going to need to share more information. There is no HTTP 1020 error so I’m pretty sure this isn’t an ESI issue? Or if it is, then its related to some networking thing versus ESI itself.
Sure.
That’s the code.
$url_token ='https://login.eveonline.com/v2/oauth/token';
$header = 'Authorization: Basic '.base64_encode($this->client_id.':'.$this->client_secred);
$fields_string = '';
$fields = array(
'grant_type' => 'refresh_token',
'refresh_token' => $this->refresh_token,
);
foreach ($fields as $key => $value) {
$fields_string .= $key.'='.$value.'&';
}
rtrim($fields_string, '&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url_token);
curl_setopt($ch, CURLOPT_HTTPHEADER, array($header));
curl_setopt($ch, CURLOPT_POST, count($fields));
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
$decoded= json_decode($result);
print_R($result);
DIE();
which spits: error code: 1020
Can you provide the exact response body? Is it HTML or JSON?
string(16) “error code: 1020”
oh lol. that’s literally it? .
Do you get the same output using like cURL
or Postman
directly? Anything helpful in the response headers?
I’m fairly certain this isn’t an ESI issue, but something with routing your request to it, as normally ESI would return JSON error messages, even AWS would return HTML. Seems that error is related to cloud flair. Where are you geographically? Could be triggering some protections or something , hard to say.
Yep. That’s why I am puzzled.
It stops most likely before ESI on some cloudflare firewall.
The servers are just plain siple VPS from heatzner.
I’ve made a ticket to EVE support, with slight hope they pick it up quickly.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.