python-matter-server icon indicating copy to clipboard operation
python-matter-server copied to clipboard

update_node with non existing software-version results in misleading error message

Open olavt opened this issue 1 year ago • 0 comments

If I call update_node with a non-existing software_version, I get this error message:

"Fetching software versions from DCL for device with vendor id 4190 product id 17577 failed."

I find this message a bit misleading as it implies that it could not fetch a list of available software versions.

A message like this would have been more concise:

"Software version X for for device with vendor id 4190 product id 17577 was not found in the DCL."

Here are messages from the log for reference:

2024-10-29 18:30:47.902 (MainThread) INFO [matter_server.server.device_controller] Node:1 New software update found: 1.7.110.0 on UpdateSource.MAIN_NET_DCL (current 1.6.102.0). 2024-10-29 18:32:57.265 (MainThread) WARNING [matter_server.server.client_handler] [547543565904] Disconnected: Received error message: 2024-10-29 18:36:00.628 (MainThread) INFO [matter_server.server.device_controller] Node:1 New software update found: 1.7.110.0 on UpdateSource.MAIN_NET_DCL (current 1.6.102.0). 2024-10-29 18:36:31.808 (MainThread) INFO [matter_server.server.device_controller] Node:1 New software update found: 1.7.110.0 on UpdateSource.MAIN_NET_DCL (current 1.6.102.0). 2024-10-29 18:38:06.678 (MainThread) INFO [matter_server.server.device_controller] Node:1 New software update found: 1.7.110.0 on UpdateSource.MAIN_NET_DCL (current 1.6.102.0). 2024-10-29 21:48:13.161 (MainThread) INFO [matter_server.server.device_controller] Node:1 New software update found: 1.7.110.0 on UpdateSource.MAIN_NET_DCL (current 1.6.102.0). 2024-10-29 21:48:27.283 (MainThread) INFO [matter_server.server.device_controller] Node:1 Update to software version 285240833 2024-10-29 21:48:27.430 (MainThread) ERROR [matter_server.server.client_handler] [547544437008] Error while handling: update_node (node 1): Fetching software versions from DCL for device with vendor id 4190 product id 17577 failed. 2024-10-29 21:49:51.262 (MainThread) WARNING [matter_server.server.client_handler] [547544437008] Disconnected: Received error message:

olavt avatar Oct 29 '24 22:10 olavt