yp87 / leaf2mqtt

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

Login error even with confirmed accurate login credentials and Nissan servers functioning. #58

Open jenny-lynn-ax opened 1 year ago

jenny-lynn-ax commented 1 year ago

Describe the bug When starting the addon, log shows WARNING: 2023-06-03 11:23:09.031345: main: An error occured while logging in. Please make sure you have selected the right LEAF_TYPE, LEAF_USERNAME and LEAF_PASSWORD. even though I've confirmed login credentials are indeed accurate. Log output below.

LEAF_TYPE Newer Than May 2019

Expected behavior Expected successful login.

WARNING: 2023-06-03 11:30:14.815534: main: An error occured while logging in. Please make sure you have selected the right > > LEAF_TYPE, LEAF_USERNAME and LEAF_PASSWORD. Retrying in 5 seconds. FINE: 2023-06-03 11:30:14.816528: main: NoSuchMethodError: The method '[]' was called on null. Receiver: null Tried calling: []("realm" FINE: 2023-06-03 11:30:14.817724: main: #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38)

1 _objectNoSuchMethod (dart:core-patch/object_patch.dart:85)

2 NissanConnectSession.login (package:dartnissanconnect/src/nissanconnect_session.dart:299)

asynchronous suspension>

3 NissanConnectSessionWrapper.login (file:///app/src/leaf/nissan_connect_wrapper.dart:21)

asynchronous suspension>

4 _login (file:///app/src/leaf_2_mqtt.dart:87)

asynchronous suspension>

5 main (file:///app/src/leaf_2_mqtt.dart:63)

WARNING: 2023-06-03 11:30:14.827515: main: Could not execute request.