Skip to content

Instantly share code, notes, and snippets.

@brianmay
Last active February 2, 2021 08:00
Show Gist options
  • Save brianmay/4351597a43561253544f530b5d23a5a5 to your computer and use it in GitHub Desktop.
Save brianmay/4351597a43561253544f530b5d23a5a5 to your computer and use it in GitHub Desktop.
teslamate 1.21.0 renewal log
2021-02-02 07:34:27.303 [info] Refreshing access token ...
2021-02-02 07:34:27.499 [info] GET /
2021-02-02 07:34:27.512 [info] Sent 200 in 12ms
2021-02-02 07:34:28.142 [error] GenServer TeslaMate.Api terminating
** (MatchError) no match of right hand side value: {:error, %TeslaApi.Error{env: %Tesla.Env{__client__: %Tesla.Client{adapter: nil, fun: nil, post: [], pre: []}, __module__: TeslaApi, body: %{"response" => "endpoint_deprecated:_please_update_your_app."}, headers: [{"date", "Tue, 02 Feb 2021 07:34:28 GMT"}, {"content-type", "application/json; charset=utf-8"}, {"transfer-encoding", "chunked"}, {"connection", "keep-alive"}, {"x-frame-options", "SAMEORIGIN"}, {"x-xss-protection", "1; mode=block"}, {"x-content-type-options", "nosniff"}, {"cache-control", "no-store"}, {"pragma", "no-cache"}, {"www-authenticate", "Bearer realm=\"Doorkeeper\", error=\"\", error_description=\"translation missing: en.doorkeeper.errors.messages\""}, {"x-request-id", "c4bcdb1c413c45532faaf8da6fdc4d3ac4bcdb1c413c45532faaf8da6fdc4d3a"}, {"x-runtime", "0.019819"}, {"strict-transport-security", "max-age=15724800; includeSubDomains"}], method: :post, opts: [access_token: "qts-4a36c52ff44ccac9f8e31dd717b93696983efc609670cb39ce966cb07d66e763"], query: [], status: 400, url: "https://owner-api.teslamotors.com/oauth/token"}, message: "An unknown error has occurred.", reason: :unknown}}
(teslamate 1.21.0) lib/teslamate/api.ex:144: TeslaMate.Api.handle_info/2
(stdlib 3.14) gen_server.erl:689: :gen_server.try_dispatch/4
(stdlib 3.14) gen_server.erl:765: :gen_server.handle_msg/6
(stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: :refresh_auth
2021-02-02 07:34:28.357 [warn] Token refresh failed: %TeslaApi.Error{
env: %Tesla.Env{
__client__: %Tesla.Client{adapter: nil, fun: nil, post: [], pre: []},
__module__: TeslaApi,
body: %{"response" => "endpoint_deprecated:_please_update_your_app."},
headers: [
{"date", "Tue, 02 Feb 2021 07:34:28 GMT"},
{"content-type", "application/json; charset=utf-8"},
{"transfer-encoding", "chunked"},
{"connection", "keep-alive"},
{"x-frame-options", "SAMEORIGIN"},
{"x-xss-protection", "1; mode=block"},
{"x-content-type-options", "nosniff"},
{"cache-control", "no-store"},
{"pragma", "no-cache"},
{"www-authenticate",
"Bearer realm=\"Doorkeeper\", error=\"\", error_description=\"translation missing: en.doorkeeper.errors.messages\""},
{"x-request-id",
"fa922e8e29c87159b725fa21d2b0b750fa922e8e29c87159b725fa21d2b0b750"},
{"x-runtime", "0.010623"},
{"strict-transport-security", "max-age=15724800; includeSubDomains"}
],
method: :post,
opts: [
access_token: "qts-4a36c52ff44ccac9f8e31dd717b93696983efc609670cb39ce966cb07d66e763"
],
query: [],
status: 400,
url: "https://owner-api.teslamotors.com/oauth/token"
},
message: "An unknown error has occurred.",
reason: :unknown
}
2021-02-02 07:34:28.358 [info] Scheduling token refresh in 1 h
2021-02-02 07:34:34.717 [info] GET /
2021-02-02 07:34:34.729 [info] Sent 200 in 11ms
2021-02-02 07:34:36.907 [error] ** (RuntimeError) Client Error: %{"error_type" => "client_error", "msg_type" => "data:error", "tag" => "1318482982", "value" => "Can't validate token. "}
(teslamate 1.21.0) lib/tesla_api/stream.ex:150: TeslaApi.Stream.handle_frame/2
(websockex 0.4.2) lib/websockex.ex:1113: WebSockex.try_callback/3
(websockex 0.4.2) lib/websockex.ex:797: WebSockex.common_handle/4
(stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
2021-02-02 07:34:37.105 [error] Error / unauthorized
2021-02-02 07:34:37.501 [info] GET /
2021-02-02 07:34:37.509 [info] Sent 302 in 7ms
2021-02-02 07:34:37.513 [info] GET /sign_in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment