Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: headers is not defined -> openHab3 #54

Open
Teufelskerl666 opened this issue Dec 26, 2020 · 10 comments
Open

ReferenceError: headers is not defined -> openHab3 #54

Teufelskerl666 opened this issue Dec 26, 2020 · 10 comments

Comments

@Teufelskerl666
Copy link

The openhab2-get node raise that Error

@pdmangel
Copy link
Owner

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

@Teufelskerl666
Copy link
Author

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
Copy link

Rondal commented Dec 31, 2020

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
Copy link

twieland commented Jan 3, 2021

Same here.

@iko3
Copy link

iko3 commented Jan 4, 2021

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

@Jeharadk
Copy link

Jeharadk commented Jan 7, 2021

I see the same problem as well.

@samuel-gay
Copy link
Contributor

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
Copy link
Contributor

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

samuel-gay added a commit to samuel-gay/node-red-contrib-openhab2 that referenced this issue Jan 8, 2021
pdmangel added a commit that referenced this issue Jan 8, 2021
fix for #54 - Reference Error: headers is not defined
@pdmangel
Copy link
Owner

pdmangel commented Jan 8, 2021

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

@bensteUEM
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants