tp1de / ioBroker.ems-esp

EMS-ESP Adapter
MIT License
18 stars 4 forks source link

SyntaxError: Unexpected token � in JSON at position 0 #53

Closed Cortexlentis closed 2 months ago

Cortexlentis commented 3 months ago

After Updating the Buanet Iobroker Image in the Docker to the latest Version (Node.js: v18.20.1 / NPM: 10.5.1 / IOB: v6.13.16) for the update of the ems-esp to Version 3.03 i get a red protocol response by using the km200 gateway:

km200 decrypt: http://192.168.0.225 - SyntaxError: Unexpected token � in JSON at position 0

Excepting this entry the Adapter works fine an i get the data from the km100. No additional entrys in the configuration excepting ip adress an password(s).

Is this a problem that I can fix by myself or is it a failure in the adapter?

Thank you.

Screenshot 2024-04-05 180326

tp1de commented 3 months ago

The error indicates missing data for one field.

What has been changed.

New docker Version. Does the previous adapter version giving the same error? Is the error persistent for every adapter start?

Cortexlentis commented 3 months ago

the previous adapter does not come up with this error message. it pops up every time you restart the adapter. also the iobroker was restarted - same thing.

tp1de commented 3 months ago

I added a second error message identifying the get request which gives this error message. Could you please install the adapter version from Github and restart the adapter? Please post the error messages ...

Cortexlentis commented 3 months ago

Sure... Screenshot 2024-04-06 212716

tp1de commented 2 months ago

I can reproduce now on my heating system for the /gateway/firmware field. I have to check if I just skip this error or if I can find a solution.

tp1de commented 2 months ago

The field /gateway/firmware contains binary data. All other fields a JSON data object. I can not decode tis data - so I skip unreadable data now.

I hope it works with version 3.1.0. now.

Cortexlentis commented 2 months ago

Works fine, no unexpected protocol entry so far. Thank you very much for the quick support! Screenshot 2024-04-07 154032