pdmangel / node-red-contrib-openhab2

Other
21 stars 15 forks source link

ReferenceError: headers is not defined -> openHab3 #54

Open Teufelskerl666 opened 3 years ago

Teufelskerl666 commented 3 years ago

The openhab2-get node raise that Error

pdmangel commented 3 years ago

And did you install version 1.1.8 of node-red-contrib-openhab2 ?

Teufelskerl666 commented 3 years ago

Something strange happend here. Now it works again, but I haven't change anything. No reboots. I was just walking in the wood :-) I'll keep an eye on it.

Rondal commented 3 years ago

Hi,

I have the same issue reported by Teufelskerl. I've updated to OH3 and the node version 1.1.8. Listening to events (including auth) works fine. But the 'get' node throws the error above.

twieland commented 3 years ago

Same here.

iko3 commented 3 years ago

Experiencing same problem. All my workflows stopped working after updating to OH3. Version 1.1.8 doesn't fix the problem

Jeharadk commented 3 years ago

I see the same problem as well.

samuel-gay commented 3 years ago

I am experiencing the same issue, at first once I installed node red and configured it for OH3, the Get node was throwing the above error. I fiddled for a while trying different items from openhab, then for no reason I can see, it started working, possibly after trying to output a new state for a different item. After I rebooted, the reference error returned.

samuel-gay commented 3 years ago

Made some edits on my local copy, added 'headers = {};' after line 238 of 77-openhab2.js seems to have fixed it.

pdmangel commented 3 years ago

Thanks for contributing @samuel-gay . I'll roll a new version out to npm asap.

bensteUEM commented 3 years ago

Any updates on this issue? I'm still getting this error from time to time, though i couldn't pin point it yet. So far my palette shows i'm using 1.1.8 as far as i understand this thread someone is about to package a 1.1.9?