zivillian / ism7mqtt

GNU General Public License v3.0
49 stars 8 forks source link

System.ArgumentException: '0xFFFFFFFB' is not a hex value (Parameter 'hex') with v.0.0.15 #81

Closed krkuhlmann closed 7 months ago

krkuhlmann commented 7 months ago

After updating to v.0.0.15 I keep getting following error and the docker container keeps restarting.

2023-11-09T14:10:00.122237662Z > <?xml version="1.0" encoding="utf-16"?><tbreq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" bn="4" gw="1" ae="true" ty="write"><iwr se="" ba="0x03" in="12057" dl="0x00" dh="0x00" /></tbreq>
2023-11-09T14:10:01.696471832Z < <?xml version="1.0" encoding="utf-8"?><tbres bn="4" gw="" st="OK" ts="2023-11-09T15:06:18" emsg=""><iac se="0" ba="0x3" in="12057" dl="0x0" dh="0x0" st="OK"/></tbres>
2023-11-09T14:10:01.749458483Z System.ArgumentException: '0xFFFFFFFB' is not a hex value (Parameter 'hex')
2023-11-09T14:10:01.749644504Z    at ism7mqtt.Converter.FromHex(String hex) in /app/ism7mqtt/ISM7/Converter.cs:line 11
2023-11-09T14:10:01.749700647Z    at ism7mqtt.Ism7Config.<>c__DisplayClass13_0.<ProcessData>b__3(RunningDevice x) in /app/ism7mqtt/ISM7/Ism7Config.cs:line 115
2023-11-09T14:10:01.749758669Z    at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
2023-11-09T14:10:01.749818327Z    at ism7mqtt.Ism7Config.ProcessData(IEnumerable`1 data) in /app/ism7mqtt/ISM7/Ism7Config.cs:line 112
2023-11-09T14:10:01.749868134Z    at ism7mqtt.Ism7Client.OnWriteResponse(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 151
2023-11-09T14:10:01.749919607Z    at ism7mqtt.ResponseDispatcher.DispatchAsync(IResponse response, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/ResponseDispatcher.cs:line 32
2023-11-09T14:10:01.750006122Z    at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 212

This probably has to do with the changes made in #73 .

krkuhlmann commented 7 months ago

I think i found the issue reading your comment at https://github.com/zivillian/ism7mqtt/issues/72#issuecomment-1763383228.

When updating to v0.0.15 I need to create a new parameter.json. That is a breaking change that is missing in the changelog for v0.0.15 at https://github.com/zivillian/ism7mqtt/releases.