matthutchinson / lifx_dash

Toggle LIFX lights with an Amazon Dash button 💡
https://matthutchinson.github.io/lifx_dash/
MIT License
3 stars 1 forks source link

undefined method 'ip_id' #5

Closed eidermar closed 7 years ago

eidermar commented 7 years ago

hi matt

ran into some troubles with my dashes. lifx_dash randomly crashes after the most recent changes with the following message:

error: undefined method 'ip_id' for nil:NilClasserror: undefined method 'ip_id' for nil:NilClass

any clue what's wrong on my side?

thanks for your help!

matthutchinson commented 7 years ago

Can you paste the full error here, and let me know what gem version you are using. I thought I had patched this bug. This conditional should check for any nil on pkt; https://github.com/matthutchinson/lifx_dash/blob/master/lib/lifx_dash/capturer.rb#L26

eidermar commented 7 years ago

gem list output: lifx_dash (0.2.3, 0.2.2, 0.1.3)

that's the full error message as shown in lifx_dash.log

let me know if there's anything else I can provide.

btw running lifx_dash on Ubuntu 16.4 LTS

matthutchinson commented 7 years ago

can you try uninstalling the older versions? leaving only 0.2.3

eidermar commented 7 years ago

ok, I uninstalled the old gems and so far no crashes. I'll monitor going forward and will report back.

eidermar commented 7 years ago

matt, thanks a lot for helping out. It seems the problems are gone since removing the old gems. I think it's save to close the issue.

matthutchinson commented 7 years ago

👍🏼