# Error 1020

**URL:** <https://forums.eveonline.com/t/error-1020/351915>\
**Category:** Third Party Developers\
**Created:** [March 3, 2022, 8:18am UTC](https://forums.eveonline.com/t/error-1020/351915 "2022-03-03T08:18:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Acan](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/acan/32/309912_2.png) [@Acan](https://forums.eveonline.com/u/Acan)\
**Post date:** [March 3, 2022, 8:18am UTC](https://forums.eveonline.com/t/error-1020/351915/1 "2022-03-03T08:18:06Z")

</div>

Hello,

My third party app (that’s been there for years) is getting error 1020 all of a sudden.  
What do?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [March 3, 2022, 2:42pm UTC](https://forums.eveonline.com/t/error-1020/351915/2 "2022-03-03T14:42:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Acan](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/acan/32/309912_2.png) [@Acan](https://forums.eveonline.com/u/Acan)\
**Post date:** [March 3, 2022, 5:09pm UTC](https://forums.eveonline.com/t/error-1020/351915/3 "2022-03-03T17:09:27Z")

</div>

Sure.

That’s the code.

```auto
$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

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [March 3, 2022, 5:44pm UTC](https://forums.eveonline.com/t/error-1020/351915/4 "2022-03-03T17:44:55Z")

</div>

Can you provide the exact response body? Is it HTML or JSON?

---

<div class="post-metadata">

**Author:** ![Acan](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/acan/32/309912_2.png) [@Acan](https://forums.eveonline.com/u/Acan)\
**Post date:** [March 3, 2022, 5:45pm UTC](https://forums.eveonline.com/t/error-1020/351915/5 "2022-03-03T17:45:48Z")

</div>

string(16) “error code: 1020”

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [March 3, 2022, 5:51pm UTC](https://forums.eveonline.com/t/error-1020/351915/6 "2022-03-03T17:51:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Acan](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/acan/32/309912_2.png) [@Acan](https://forums.eveonline.com/u/Acan)\
**Post date:** [March 3, 2022, 5:53pm UTC](https://forums.eveonline.com/t/error-1020/351915/7 "2022-03-03T17:53:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Acan](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/acan/32/309912_2.png) [@Acan](https://forums.eveonline.com/u/Acan)\
**Post date:** [March 3, 2022, 5:56pm UTC](https://forums.eveonline.com/t/error-1020/351915/8 "2022-03-03T17:56:42Z")

</div>

I’ve made a ticket to EVE support, with slight hope they pick it up quickly.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [June 1, 2022, 5:57pm UTC](https://forums.eveonline.com/t/error-1020/351915/9 "2022-06-01T17:57:38Z")

</div>

Closed on June 1, 2022, 5:57pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
