Plugin crash on Verisure error message (version 2.0.7)

Posted on
Thu Jan 09, 2020 11:56 am
CrazyFin offline
Posts: 381
Joined: Jan 08, 2015
Location: Stockholm, SWEDEN

Plugin crash on Verisure error message (version 2.0.7)

Alright, version 2.0.7 of this excellent plugin has been stable since its release! Wonderful!

However, last 2 days the plugin has crashed two times due to the following error message from Verisure:

Code: Select all
2020-01-08 00:18:58.943   Verisure v2 Error   Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
  File "plugin.py", line 334, in runConcurrentThread
  File "plugin.py", line 177, in refreshData
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/VerisureV2.indigoPlugin/Contents/Server Plugin/verisure/session.py", line 188, in get_overview
RequestError: HTTPSConnectionPool(host='e-api02.verisure.com', port=443): Max retries exceeded with url: /xbn/2/installation/<removed my installation number from here>/overview (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x113841e90>: Failed to establish a new connection: [Errno 60] Operation timed out',))

2020-01-08 00:18:58.944   Verisure v2 Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2020-01-08 00:19:08.947   Verisure v2 Error   Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
  File "plugin.py", line 329, in runConcurrentThread
AttributeError: 'Plugin' object has no attribute 'login'

2020-01-08 00:19:08.948   Verisure v2 Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


When this happens the plugin never recovers and it just keeps on repeating the error message:
Code: Select all
2020-01-08 00:19:38.962   Verisure v2 Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 329, in runConcurrentThread
AttributeError: 'Plugin' object has no attribute 'login'

2020-01-08 00:19:38.963   Verisure v2 Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Only solution is to reload the plugin and it starts to work normally again.
Seems to have been caused by Verisure responding "Max retries exceeded with url:" so I decided to decrease the polling interval from 5 seconds to 15 seconds.
Let's see if this error happens again with the lower polling interval.

Posted on
Fri Jan 10, 2020 11:23 am
CrazyFin offline
Posts: 381
Joined: Jan 08, 2015
Location: Stockholm, SWEDEN

Re: Plugin crash on Verisure error message (version 2.0.7)

Unfortunately the plugin crashed the same way today:

Code: Select all
2020-01-10 10:23:56.678   Verisure v2 Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 334, in runConcurrentThread
  File "plugin.py", line 177, in refreshData
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/VerisureV2.indigoPlugin/Contents/Server Plugin/verisure/session.py", line 188, in get_overview
RequestError: HTTPSConnectionPool(host='e-api02.verisure.com', port=443): Max retries exceeded with url: /xbn/2/installation/<removed for security>/overview (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x101dcc710>: Failed to establish a new connection: [Errno 51] Network is unreachable',))

2020-01-10 10:23:56.678   Verisure v2 Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Sat Jan 18, 2020 3:40 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Plugin crash on Verisure error message (version 2.0.7)

Hi CrazyFin

I just noticed I didn't reply to this.

However, have you tried 2.0.8 which I released on Christmas Eve and has a fix for a login-related issue so may well resolve this as well.

Peter

Posted on
Sat Jan 18, 2020 4:54 pm
CrazyFin offline
Posts: 381
Joined: Jan 08, 2015
Location: Stockholm, SWEDEN

Re: Plugin crash on Verisure error message (version 2.0.7)

@howartp;

I did try the version 2.0.8 of the plugin a few weeks ago before I encountered the errors I reported in this thread.
The version 2.0.8 had its own problems causing me to have to roll back to 2.0.7. See my error report at viewtopic.php?f=321&t=23383

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests