These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

/oauth/token returning internal server error

First post
Author
Martin T
Gnostic Ascension
#1 - 2014-12-10 14:35:49 UTC
As stated in the subject, I'm getting a 500 internal server error when trying to verify an authorization code.
The app has the publicData scope and I'm using a redirect to localhost for testing purposes, which works fine and I get an authorization code back. When I try to POST it to login.eveonline.com/oauth/token however I get messages like these:

Status: HTTP/1.1 500 Internal server error
Body: Internal server error. Error ref: 6949b0e3-9708-49f7-b2cf-c2dde5c20ff6

Any pointers?
CCP FoxFour
C C P
C C P Alliance
#2 - 2014-12-10 14:51:56 UTC
Can you give a full example of what you are posting?

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Martin T
Gnostic Ascension
#3 - 2014-12-10 15:14:25 UTC  |  Edited by: Martin T
POST /oauth/token HTTP/1.1
Authorization: Basic Mz...redacted...BiYmZS
Content-Type: application/x-www-form-urlencoded
Host: login.eveonline.com
Content-Length: 100
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.3.6 (java 1.5)
Accept-Encoding: gzip,deflate

grant_type=authorization_code&code=orux1mQRmIaTeesCTCx6cKEQReigYSEPovV0VF4f_JJArsbe1aJ9LambVBV_iP5j0


Wireshark shows no spaces, etc after the body.

Quick edit: I grabbed the above by sending the request to http://login.eveonline.com/oauth/token so I can read it directly and not have it go through ssl. That throws me a 302 to look at the https version... duh.
Martin T
Gnostic Ascension
#4 - 2014-12-11 07:54:10 UTC
Nevermind, I had forgotten the colon in the authorization hash Ugh
I would've appreciated a 400 or 401 status, but I can't really complain when I did something wrong.

Thread can be gc'd.
CCP FoxFour
C C P
C C P Alliance
#5 - 2014-12-11 09:34:35 UTC
Yea, we shouldn't be tossing a 500 in that case. Thanks for the report.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.