ccpgames / sso-issues

Please file issues with the CCP SSO (login.eveonline.com) here.
17 stars 1 forks source link

v2/oauth/token 500 error #70

Closed Grasume closed 3 years ago

Grasume commented 3 years ago

bug

Issue GuzzleHttp\Exception\ServerException Server error:POST https://login.eveonline.com/v2/oauth/tokenresulted in a500 Internal Server Errorresponse: {"Message":"An error has occurred."}

Code $response = $this->getHttpClient()->post($this->getTokenUrl(), [ 'headers' => [ 'Authorization' => 'Basic '.base64_encode(config('services.eveonline-prod.client_id').':'.config('services.eveonline-prod.client_secret')), 'Content-Type' => 'application/x-www-form-urlencoded', 'Host' => 'login.eveonline.com', ], "form_params" => [ 'grant_type' => 'authorization_code', 'code' => $code, ], ]);

  return json_decode($response->getBody(), true);

Expected response 200 or other error message .

Received response 500 Internal Server Error