mapero / node-red-contrib-smartplug

MIT License
3 stars 4 forks source link

Getting error on Deploy - Error Object.keys called on non-object #10

Open JonMurphy opened 8 years ago

JonMurphy commented 8 years ago

Jochen - When I was testing the fix for Issue #8 and Issue #4 I kept seeing this error: Error: {"error":"unexpected_error","message":"TypeError: Object.keys called on non-object"}

screen shot 2016-06-23 at 11 47 40 am

This error does not happen during every deploy. The error during deploy happens about 20% to 40% (guess) of the time. When this error does happen then the flow will not deploy. I will wait 5-10 seconds and try Deploy again. After doing this 4-6 times, then the flow will finally deploy.

JonMurphy commented 8 years ago

Found something that may help. In the Deploy dropdown - if I do a Modified Flows Deploy or a Modified Nodes Deploy I will sometimes get the error above.

If I do a Full Deploy then there is no error.

mapero commented 8 years ago

Are you sure the source of this error is the smart plug node? This "popup" errors are coming from the UI by using RED.notify. I use this function, but I am only using predefined text, no generic error messages. Also i am not using Object.keys on the smart plug node.

JonMurphy commented 8 years ago

Hi Jochen - Honestly no, I am not sure. But the message only pops up when I make changes to this flow. I'll post this on the nodered google group and see what comes back. Thanks! Jon

mapero commented 7 years ago

@JonMurphy any feedback from the group?

JonMurphy commented 7 years ago

I'm not measuring anything at the moment but I will plug in my Edimax Smartplug and give it a test. I've got two Smartplugs so I'll look for issue #16 also.