Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

I get "The access token is invalid" #1

Closed
juanmjimenezs opened this issue Mar 23, 2017 · 0 comments
Closed

I get "The access token is invalid" #1

juanmjimenezs opened this issue Mar 23, 2017 · 0 comments

Comments

@juanmjimenezs
Copy link

Hi Hudson, yesterday I was trying to get vehicles with my own code (the authentication is ok) and I get this error, today I found you and I tried with your code but I got the same error, do you know why?... I mean, I think the problem is in the API but maybe you know more about this issue... Thanks a lot, I hope you can help me:

Note: the email and password are correct because I enter with this data in https://my.teslamotors.com/user/login

[Request]: GET https://owner-api.teslamotors.com/api/1/vehicles
[Response]: <NSHTTPURLResponse: 0x6000002229e0> { URL: https://owner-api.teslamotors.com/api/1/vehicles } { status code: 401, headers {
"Cache-Control" = "no-store";
Connection = "keep-alive";
"Content-Type" = "application/json";
Date = "Thu, 23 Mar 2017 15:16:23 GMT";
Pragma = "no-cache";
Server = nginx;
Status = "401 Unauthorized";
"Transfer-Encoding" = Identity;
"Www-Authenticate" = "Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token is invalid"";
"X-Content-Type-Options" = nosniff;
"X-Frame-Options" = SAMEORIGIN;
"X-Request-Id" = "263be08b-2a66-487f-a9ae-024bb05cd43b";
"X-Runtime" = "0.012536";
"X-XSS-Protection" = "1; mode=block";
} }
[Data]: 0 bytes
[Result]: FAILURE: responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputDataNilOrZeroLength)
[Timeline]: Timeline: { "Request Start Time": 511974983.442, "Initial Response Time": 511974983.660, "Request Completed Time": 511974983.660, "Serialization Completed Time": 511974983.660, "Latency": 0.217 secs, "Request Duration": 0.217 secs, "Serialization Duration": 0.000 secs, "Total Duration": 0.218 secs }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant