Http post request

Hello everyone,
I am trying to read out values, e.g. the water consumption, from a 7 year old Grünbeck SC18. I did this successfully with Openhab before I bought a Homey pro 2023. If I try to make the same http query with a logic card in the flows, I always get the following error ‘request to http://192.168.10.53/mux_http failed, reason: Parse Error: Invalid header value char’. I have also tried it with a JavaScript but get the same error. The web server of the Grünbeck system uses http 1.1. The request is also successful via a REST client in the browser.
Do you have any idea what I am doing wrong or why Homey is giving such an error?



Your device apparently sends back a header with invalid characters, which Node.js (the system underlying both flows and Homeyscript) doesn’t allow. I don’t think there’s a way to fix this, as it would require starting Node.js with a particular command line option (--insecure-http-parser), which isn’t possible with Homey.

Try using a GET instead of a POST?

Andy

Why not using the app?

2 Likes

That would be too easy :joy:

2 Likes

Hi,
I couldn’t register my system in the myProduckt app all the time, so I didn’t use your tool. Today the registration worked and now I can also use the app. Thank you very much!

1 Like

You grow with your challenges :wink: