yp87 / leaf2mqtt

Pull in data from the Nissan Connect platform for the LEAF and publish over MQTT
GNU General Public License v3.0
41 stars 39 forks source link

Values not updated on a regular basis, not sure if the errors I get is the cause #71

Open antonhagg opened 1 year ago

antonhagg commented 1 year ago

I get some errors when running the docker, and it seems that the values are not updated. `FINE: 2023-12-02 11:27:48.280277: LeafSession: FormatException: Unexpected character (at character 1) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> ^

FINER: 2023-12-02 11:27:48.280417: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383)

1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250)

2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915)

3 _parseJson (dart:convert-patch/convert_patch.dart:35)

4 JsonDecoder.convert (dart:convert/json.dart:610)

5 JsonCodec.decode (dart:convert/json.dart:216)

6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72)

#7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46) #8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:355) #9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148) #10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153) #11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129) #12 Future.wait. (dart:async/future.dart:522) #13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:111) #14 Future.wait. (dart:async/future.dart:522) #15 main (file:///app/src/leaf_2_mqtt.dart:69) FINER: 2023-12-02 11:27:48.280429: LeafSession: Force a login before retrying failed execution.` and `FINEST: 2023-12-02 11:27:55.087759: LeafSession: Executing FINE: 2023-12-02 11:27:55.736461: LeafSession: FormatException: Unexpected character (at character 1) ^ FINER: 2023-12-02 11:27:55.737144: LeafSession: #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383) #1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1250) #2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:915) #3 _parseJson (dart:convert-patch/convert_patch.dart:35) #4 JsonDecoder.convert (dart:convert/json.dart:610) #5 JsonCodec.decode (dart:convert/json.dart:216) #6 CarwingsSession.request (package:dartcarwings/src/carwings_session.dart:72) #7 CarwingsSession.requestWithRetry (package:dartcarwings/src/carwings_session.dart:46) #8 CarwingsVehicle.requestLocation (package:dartcarwings/src/carwings_vehicle.dart:355) #9 CarwingsVehicleWrapper.fetchLocation (file:///app/src/leaf/carwings_wrapper.dart:148) #10 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153) #11 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129) #12 Future.wait. (dart:async/future.dart:522) #13 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:111) #14 Future.wait. (dart:async/future.dart:522) #15 main (file:///app/src/leaf_2_mqtt.dart:69) FINE: 2023-12-02 11:27:55.737335: LeafSession: Exception: Execution failed. FINER: 2023-12-02 11:27:55.737456: LeafSession: #0 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:161) #1 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129) #2 Future.wait. (dart:async/future.dart:522) #3 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:111) #4 Future.wait. (dart:async/future.dart:522) #5 main (file:///app/src/leaf_2_mqtt.dart:69) WARNING: 2023-12-02 11:27:55.737474: main: Could not execute request. FINEST: 2023-12-02 11:27:55.737516: MqttClientWrapper: Publishing message lastErrorDateTimeUtc 2023-12-02T11:27:55.737481Z FINEST: 2023-12-02 11:27:55.737765: MqttClientWrapper: Publishing message {vin}/lastErrorDateTimeUtc 2023-12-02T11:27:55.737481Z FINE: 2023-12-02 11:28:02.358241: LeafSession: Error FINER: 2023-12-02 11:28:02.358367: LeafSession: #0 CarwingsVehicle.responseFlagHandler (package:dartcarwings/src/carwings_vehicle.dart:398) #1 CarwingsVehicle._getCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:332) #2 CarwingsVehicle.requestCabinTemperature (package:dartcarwings/src/carwings_vehicle.dart:311) #3 CarwingsVehicleWrapper.fetchClimateStatus (file:///app/src/leaf/carwings_wrapper.dart:125) #4 LeafSession._executeWithRetry (file:///app/src/leaf/leaf_session.dart:153) #5 LeafSession.executeWithRetry (file:///app/src/leaf/leaf_session.dart:129) #6 Future.wait. (dart:async/future.dart:522) #7 startUpdateLoop (file:///app/src/leaf_2_mqtt.dart:111) #8 Future.wait. (dart:async/future.dart:522) #9 main (file:///app/src/leaf_2_mqtt.dart:69) FINER: 2023-12-02 11:28:02.358420: LeafSession: Force a login before retrying failed execution. FINEST: 2023-12-02 11:28:08.242226: LeafSession: Executing`