G-Two / subarulink

A python package for interacting with Subaru STARLINK remote vehicle services.
Apache License 2.0
86 stars 13 forks source link

Device not authenticated error #13

Closed mconlow closed 4 years ago

mconlow commented 4 years ago

This happened the first time I tried running the CLI in a new virtual enviornment. It did not recur on subsequent runs. Dropping it here in case there's any error handling you want to do:

2020-07-22 14:11:25,622 - subarulink.connection - DEBUG - GET: https://www.mysubaru.com/profile/addDeviceName.json
2020-07-22 14:11:25,665 - subarulink.connection - DEBUG - Set Device Name Successful
2020-07-22 14:11:25,666 - subarulink.controller - DEBUG - Subaru Remote Services Ready!
2020-07-22 14:11:25,666 - subarulink - INFO - Successfully connected

Available Vehicles:
[1] *********** (***********)
2020-07-22 14:11:25,666 - subarulink.controller - DEBUG - Getting EV Status ***********:False
2020-07-22 14:11:25,666 - subarulink.controller - DEBUG - Getting RES Status ***********:True
2020-07-22 14:11:25,666 - subarulink - INFO - Fetching data for ***********...
2020-07-22 14:11:25,666 - subarulink.controller - DEBUG - Fetching vehicle status from Subaru
2020-07-22 14:11:25,666 - subarulink.connection - DEBUG - GET: https://mobileapi.prod.subarucs.com/g2v15/validateSession.json
2020-07-22 14:11:25,689 - subarulink.connection - DEBUG - {'data': None, 'dataName': None, 'errorCode': None, 'success': True}
2020-07-22 14:11:25,689 - subarulink.connection - DEBUG - GET: https://mobileapi.prod.subarucs.com/g2v15/service/g2/condition/execute.json
2020-07-22 14:11:25,717 - subarulink.controller - DEBUG - {'data': {'errorDescription': 'Device needs to be authenticated for triggering '
                              'remote services',
          'errorLabel': 'DEVICE_NOT_AUTHENTICATED'},
 'dataName': 'errorResponse',
 'errorCode': 'DEVICE_NOT_AUTHENTICATED',
 'success': False}
2020-07-22 14:11:25,718 - subarulink - ERROR - Unable to connect.  Check Username/Password.
G-Two commented 4 years ago

Fixed, thanks for letting me know.