Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Cryten Jones
C5 Flight The Serenity Initiative
124
|
Posted - 2016.05.26 13:42:50 -
[1] - Quote
Hi guys,
I am tearing my heir out here and was hoping that you can help.
Where I am up to:
I can get the user to login and collect the Authorization code I can make a post request to login.eveonline.com/oauth/token and gain the access token and refresh token I can use the access token to walk the crest-tq.eve-online.com and view /decode branch etc (eg the token works)
However when I then try and use the refresh token to get a new access token it all goes wrong!
I am making a POST to login.eveonline.com/oauth/token
Authorization: Basic **exect same base64 encoded appkey used to get the first access token**
Post data = grant_type=refresh_token&refresh_token= **refresh Token got with the access token above**
Every time I get something like: Internal server error. Error ref: eadc77f9-9aa3-4f1f-9751-e62e9c46e857
Please tell me it's something stupid.. I just can't see it because I have been looking at it too long ! |
Mr Mac
Dark Goliath
139
|
Posted - 2016.05.26 16:04:17 -
[2] - Quote
500 is error on server. Try it later |
Cryten Jones
C5 Flight The Serenity Initiative
124
|
Posted - 2016.05.26 17:15:45 -
[3] - Quote
Mr Mac wrote:500 is error on server. Try it later
Yea.. it's been 20 hours now... thinking others would have noticed
Thanks though
|
Carbon Alabel
The Alabaster Albatross Sev3rance
12
|
Posted - 2016.05.26 18:37:39 -
[4] - Quote
Make sure you are sending the correct Content-Type header, in your case:Content-Type: application/x-www-form-urlencoded Also, make sure the character in question isn't docked in a citadel. Most citadel related bugs have been fixed, but they still make some things break from time to time. If it's still not working, post the exact code you are using here. Might be an obscure feature of the library you are using breaking things. |
Cryten Jones
C5 Flight The Serenity Initiative
124
|
Posted - 2016.05.26 20:51:14 -
[5] - Quote
Carbon Alabel wrote:Make sure you are sending the correct Content-Type header, in your case: Content-Type: application/x-www-form-urlencoded Also, make sure the character in question isn't docked in a citadel. Most citadel related bugs have been fixed, but they still make some things break from time to time. If it's still not working, post the exact code you are using here. Might be an obscure feature of the library you are using breaking things.
Thanks for the reply.
I do have that header yes, I was struggling to get the forum to let me post "code" and forgot to put it back in after working out it was the angle brackets !
As for library.. Writing my own BUT I am getting this something called Advanced REST client that just lets you build and send the requests.
|
Cryten Jones
C5 Flight The Serenity Initiative
124
|
Posted - 2016.05.27 16:57:58 -
[6] - Quote
Fixed it..
For those googling later for something like this I had managed to call the same scope twice on the initial post to /authorization
Interesting that it gives a valid access Token but an Invalid Refresh Token but there you have it
-CJ
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |