To Reproduce:
start container
enter OTP
check logs
Expected behavior:
no errors during startup
Version info:
1.10.15
Logs:
Nov 07 11:09:56 volvo2mqtt [1] - INFO: Waiting for otp code... Please check your mailbox and post your otp code to the following mqtt topic "volvoAAOS2mqtt/otp_code". Retry 7/24
Nov 07 11:10:02 volvo2mqtt [1] - INFO: Using VCCAPIKEY: xxx
Nov 07 11:10:02 volvo2mqtt [1] - INFO: Vin: ['xxx'] found!
Nov 07 11:10:02 volvo2mqtt [1] - INFO: Success! Battery Charge Level is supported by your vehicle.
Nov 07 11:10:02 volvo2mqtt [1] - ERROR: Can't set timer. Error: Expecting value: line 1 column 1 (char 0)
Nov 07 11:10:02 volvo2mqtt [1] - INFO: Success! Battery Capacity is supported by your vehicle.
...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "/volvoAAOS2mqtt/mqtt.py", line 172, in on_message
update_interval = int(payload)
ValueError: invalid literal for int() with base 10: ''
Describe the bug Errormessage in the log file
To Reproduce:
start container enter OTP check logs
Expected behavior:
no errors during startup
Version info:
1.10.15
Logs:
Nov 07 11:09:56 volvo2mqtt [1] - INFO: Waiting for otp code... Please check your mailbox and post your otp code to the following mqtt topic "volvoAAOS2mqtt/otp_code". Retry 7/24 Nov 07 11:10:02 volvo2mqtt [1] - INFO: Using VCCAPIKEY: xxx Nov 07 11:10:02 volvo2mqtt [1] - INFO: Vin: ['xxx'] found! Nov 07 11:10:02 volvo2mqtt [1] - INFO: Success! Battery Charge Level is supported by your vehicle. Nov 07 11:10:02 volvo2mqtt [1] - ERROR: Can't set timer. Error: Expecting value: line 1 column 1 (char 0) Nov 07 11:10:02 volvo2mqtt [1] - INFO: Success! Battery Capacity is supported by your vehicle. ... Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner self.run() File "/usr/local/lib/python3.9/threading.py", line 917, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/volvoAAOS2mqtt/mqtt.py", line 172, in on_message update_interval = int(payload) ValueError: invalid literal for int() with base 10: ''