ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Cannot call method split of undefined error #76

Closed schneiderr closed 9 years ago

schneiderr commented 10 years ago

Has anybody else recieved this error and fixed it ?

error

schneiderr commented 10 years ago

i have thought about adding an if statement to check if value is null before call split but i am not sure what the method does exactly.

tjanson commented 9 years ago

I ran into this issue too, it’s reproduceable like this:

curl localhost:8080/login

The problem apparently being the lack of cookies. I’ve written a fix, brb.