Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWNERS-API Issue while renewing token #1326

Open
KapUttyy opened this issue Jun 26, 2024 · 0 comments
Open

OWNERS-API Issue while renewing token #1326

KapUttyy opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@KapUttyy
Copy link
Contributor

** Append Logfile **

20.06.2024 07:30:39 : #1[Thread Pool Worker:31]: Update Tesla Token From Refresh Token!
20.06.2024 07:30:39 : #1[Thread Pool Worker:31]: HttpStatus: Forbidden
20.06.2024 07:30:39 : #1[Thread Pool Worker:31]: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path ‚‘, line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002b3] in :0
at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in :0
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in :0
at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x0004a] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in :0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in :0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value) [0x00000] in :0
at TeslaLogger.WebHelper.UpdateTeslaTokenFromRefreshToken () [0x00237] in :0
20.06.2024 07:30:39 : #1[Car_1:36]: Unhandled State: NULL

20.06.2024 07:31:39 : #1[Car_1:36]: ScanMyTesla FastMode: False
20.06.2024 07:31:39 : #1[Car_1:36]: CloseDriveState EndDate: 2024-06-19 16:12:18
20.06.2024 07:31:39 : Distance: 6.73605272822074 - Radius: 25 - :house: Zu Hause
20.06.2024 07:31:39 : Reverse geocoding by Geofence
20.06.2024 07:31:40 : #1[Thread Pool Worker:31]: HttpStatusCode = Unauthorized. Password changed or still valid? 2
20.06.2024 07:33:40 : #1[Thread Pool Worker:31]: Update Tesla Token From Refresh Token!
20.06.2024 07:33:40 : #1[Thread Pool Worker:31]: HttpStatus: Forbidden
20.06.2024 07:33:40 : #1[Thread Pool Worker:31]: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path ‚‘, line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002b3] in :0
at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in :0
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent () [0x00000] in :0
at Newtonsoft.Json.JsonReader.ReadForType (Newtonsoft.Json.Serialization.JsonContract contract, System.Boolean hasConverter) [0x0004a] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in :0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in :0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value) [0x00000] in :0
at TeslaLogger.WebHelper.UpdateTeslaTokenFromRefreshToken () [0x00237] in :0
20.06.2024 07:33:40 : #1[Car_1:36]: Unhandled State: NULL

20.06.2024 07:34:40 : #1[Car_1:36]: ScanMyTesla FastMode: False
20.06.2024 07:34:40 : #1[Car_1:36]: CloseDriveState EndDate: 2024-06-19 16:12:18
20.06.2024 07:34:40 : Distance: 6.73605272822074 - Radius: 25 - :house: Zu Hause
20.06.2024 07:34:40 : Reverse geocoding by Geofence
20.06.2024 07:34:40 : #1[Thread Pool Worker:784]: HttpStatusCode = Unauthorized. Password changed or still valid? 3
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: Update Tesla Token From Refresh Token!
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: HttpStatus: OK
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: UpdateRefreshToken
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: UpdateRefreshToken OK: 1 - encrypted:MyYhRx9/kaxxxxxxxx
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: UpdateTeslaToken
20.06.2024 07:37:10 : #1[Thread Pool Worker:784]: update tesla_token OK: 1 - eyJhbGciOiJSUzI1NiIsxxxxxx
20.06.2024 07:37:11 : #1[Thread Pool Worker:12]: Request StopStreaming
20.06.2024 07:37:11 : #1[Car_1:36]: Unhandled State: NULL

20.06.2024 07:37:11 : #1[StreamAPIThread_1:1450]: StartStream Ende
20.06.2024 07:37:12 : #1[StreamAPIThread_1:1916]: StartStream
20.06.2024 07:38:11 : #1[Car_1:36]: ScanMyTesla FastMode: False
20.06.2024 07:38:11 : #1[Car_1:36]: CloseDriveState EndDate: 2024-06-19 16:12:18
20.06.2024 07:38:11 : Distance: 6.73605272822074 - Radius: 25 - :house: Zu Hause
20.06.2024 07:38:11 : Reverse geocoding by Geofence

Describe the bug
If HTTP Status ist 403/Forbidden when renewing Tokens using OWNERS-API there is an unhandled exception within the JSONReader

To Reproduce
Token refresh fails.

Expected behavior
Catch exception writing a single line in the log and don't log the JSONReader-Exception

** Teslalogger Type **
Docker

** Do you use Tasker or iBeacon **
No

@KapUttyy KapUttyy added the bug Something isn't working label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant