Updates not working token not renewing

Posted on
Mon Jun 29, 2020 4:17 am
mat offline
Posts: 765
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Updates not working token not renewing

Morning,

Noticed a couple of days ago that indigo not updating status of my car. Deleted and reinstalled from store, deleted pref file but still getting the following error. Has anyone seen this before and know a fix please?

Thanks

Mat

Code: Select all
   Tesla EV Control                Fetching vehicles...
   Tesla EV Control Debug          Token expired - renewing oauth token for 44 days...
   Tesla EV Control Debug          Pre-JSON: {"response":"authorization_required_for_txid_`7dae98f7938a12bb2772c4fed6fc078c`"}
   Tesla EV Control Error          'created_at'
   Tesla EV Control Error          Error creating connection
   Tesla EV Control Error          Plugin version: 1.0.19
   Tesla EV Control Debug          Traceback (most recent call last):
  File "plugin.py", line 139, in getVehicles
    connection = teslajson.Connection(self.pluginPrefs['username'],self.pluginPrefs['password'])
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Tesla Control.indigoPlugin/Contents/Server Plugin/teslajson.py", line 68, in __init__
    treply = self.get('vehicles')
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Tesla Control.indigoPlugin/Contents/Server Plugin/teslajson.py", line 74, in get
    return self.post(command, None)
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Tesla Control.indigoPlugin/Contents/Server Plugin/teslajson.py", line 82, in post
    self.expiration = auth['created_at'] + auth['expires_in'] - 86400  #45 days minus 24 hours
KeyError: 'created_at'

   Tesla EV Control Error          Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 435, in runConcurrentThread
  File "plugin.py", line 146, in getVehicles
UnboundLocalError: local variable 'connection' referenced before assignment

   Tesla EV Control Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Late 2018 mini 10.14

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest