cjkrolak / ThermostatSupervisor

supervisor to detect and correct thermostat deviations
MIT License
0 stars 0 forks source link

Honeywell: pyhtcc.pyhtcc.AuthenticationError: Unable to authenticate as cjkrolak2@gmail.com. Status was: 500 #807

Open cjkrolak opened 7 months ago

cjkrolak commented 7 months ago
2024-03-10T18:06:47.8998677Z ------------------------------------------------------------
2024-03-10T18:06:47.8999069Z testing 'tests.test_honeywell_integration.FunctionalIntegrationTest.test_a_thermostat_basic_checkout'
2024-03-10T18:06:47.8999424Z ------------------------------------------------------------
2024-03-10T18:06:47.8999863Z [log_msg]: parsing runtime parameters from user input list: ['supervise.py', 'honeywell', '0', '30', '1000', '2', 'UNKNOWN_MODE', '3']
2024-03-10T18:06:47.9000312Z [log_msg]: parent_key=honeywell_0, child_key='input_file': argv parameter missing, using default value 'None'
2024-03-10T18:06:47.9000460Z 
2024-03-10T18:06:47.9000628Z checking required environment variables:
2024-03-10T18:06:47.9000852Z checking required environment key: TCC_USERNAME...OK
2024-03-10T18:06:47.9001064Z checking required environment key: TCC_PASSWORD...OK
2024-03-10T18:06:47.9001174Z 
2024-03-10T18:06:47.9001223Z 
2024-03-10T18:06:47.9001467Z 'thermostatsupervisor.honeywell' version installed: 0.0.0
2024-03-10T18:06:47.9001568Z 
2024-03-10T18:06:47.9001790Z ERROR: tests.test_honeywell_integration.FunctionalIntegrationTest.test_a_thermostat_basic_checkout
2024-03-10T18:06:47.9005085Z      pyhtcc.pyhtcc.AuthenticationError: Unable to authenticate as cjkrolak2@gmail.com. Status was: 500

2024-03-10T18:14:39.6701039Z ======================================================================
2024-03-10T18:14:39.6701328Z ERROR: test_a_thermostat_basic_checkout (tests.test_honeywell_integration.FunctionalIntegrationTest)
2024-03-10T18:14:39.6701600Z Verify thermostat_basic_checkout on target thermostat.
2024-03-10T18:14:39.6701922Z ----------------------------------------------------------------------
2024-03-10T18:14:39.6702133Z Traceback (most recent call last):
2024-03-10T18:14:39.6702387Z   File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/unittest/mock.py", line 1336, in patched
2024-03-10T18:14:39.6702637Z     return func(*newargs, **newkeywargs)
2024-03-10T18:14:39.6702890Z   File "/home/vsts/work/1/s/tests/unit_test_common.py", line 265, in test_a_thermostat_basic_checkout
2024-03-10T18:14:39.6703181Z     IntegrationTest.Thermostat, IntegrationTest.Zone = tc.thermostat_basic_checkout(
2024-03-10T18:14:39.6703473Z   File "/home/vsts/work/1/s/thermostatsupervisor/thermostat_common.py", line 1224, in thermostat_basic_checkout
2024-03-10T18:14:39.6703743Z     Thermostat, Zone = create_thermostat_instance(
2024-03-10T18:14:39.6704017Z   File "/home/vsts/work/1/s/thermostatsupervisor/thermostat_common.py", line 1189, in create_thermostat_instance
2024-03-10T18:14:39.6704287Z     Thermostat = ThermostatClass(zone, verbose=verbose)
2024-03-10T18:14:39.6704534Z   File "/home/vsts/work/1/s/thermostatsupervisor/honeywell.py", line 55, in __init__
2024-03-10T18:14:39.6704821Z     pyhtcc.PyHTCC.__init__(self, *self.args)
2024-03-10T18:14:39.6705212Z   File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pyhtcc/pyhtcc.py", line 478, in __init__
2024-03-10T18:14:39.6705458Z     self.authenticate()
2024-03-10T18:14:39.6705833Z   File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pyhtcc/pyhtcc.py", line 491, in authenticate
2024-03-10T18:14:39.6706097Z     return self._do_authenticate()
2024-03-10T18:14:39.6706479Z   File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pyhtcc/pyhtcc.py", line 540, in _do_authenticate
2024-03-10T18:14:39.6706740Z     raise AuthenticationError(
2024-03-10T18:14:39.6706981Z pyhtcc.pyhtcc.AuthenticationError: Unable to authenticate as cjkrolak2@gmail.com. Status was: 500
cjkrolak commented 7 months ago

this error was intermittent with some CI runs in early March 2024