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

Error retrieving info from hub: 417 #64

Closed
gutaker opened this issue Feb 18, 2019 · 24 comments
Closed

Error retrieving info from hub: 417 #64

gutaker opened this issue Feb 18, 2019 · 24 comments
Labels
bug Something isn't working

Comments

@gutaker
Copy link

gutaker commented Feb 18, 2019

Hi,

today I've updated Raspbian. There were ~26 packages to update including, as I can remember, the base-files.
Now your awesome plugin stopped working and homebridge is giving me this output:

0|homebridge | [2/18/2019, 10:10:55 PM] [Harmony Hub Ultimate] Loading activities... 0|homebridge | [2/18/2019, 10:10:55 PM] [Harmony Hub Ultimate] Error retrieving info from hub : 417 - {"code":"417"}

I tried to lower the version to 0.4.0 and reinstalling the plugin completely and it's a NO-GO.

My HomeKit automation relies on your plugin to Turn On the TV when someone is coming home.
BTW: Everything was working fine with 0.4.1 version before system update.

Any clues?

@gutaker gutaker changed the title Error retrieving info from hub Error retrieving info from hub: 417 Feb 18, 2019
@solomonj1963
Copy link

Ditto... Exactly...

@nicoduj
Copy link
Owner

nicoduj commented Feb 18, 2019

Hi,

Can you try updating the file in the dependency harmony-websocket with the latest one in
https://github.com/lopelex/harmony-websocket/blob/master/lib/harmony-websocket.js ?

417 means there is something that the server doesn’t like in header and I know there is a little error with an extra comma in the version published that was fixed after but as far as I knowit wasn’t a problem ...

@ghost
Copy link

ghost commented Feb 18, 2019

Hi,

Can you try updating the file in the dependency harmony-websocket with the latest one in
https://github.com/lopelex/harmony-websocket/blob/master/lib/harmony-websocket.js ?

417 means there is something that the server doesn’t like in header and I know there is a little error with an extra comma in the version published that was fixed after but as far as I knowit wasn’t a problem ...

Hi,

I got the same issue. Updating the file didn't work for me...

@solomonj1963
Copy link

solomonj1963 commented Feb 19, 2019 via email

@pponce
Copy link

pponce commented Feb 19, 2019

seeing the same error. I made the 2 small changes by hand to the harmony-websockets.js file.
Didn't fix the error for me.

@solomonj1963
Copy link

No luck replacing the harmony-websocket.js. I also noticed Logitech published new information about re-enabling XMPP here. Also tried that with no luck.

@BetoRn
Copy link

BetoRn commented Feb 19, 2019

There was an update of the hub, I'm now on 4.15.250, this version reenabled xmpp but apparently broke web sockets

@solomonj1963
Copy link

solomonj1963 commented Feb 19, 2019 via email

@Nastras
Copy link

Nastras commented Feb 19, 2019

For me, the problem is synonymous but only one of two hubs.

b49bcb2e-b512-40e9-9247-0804958fc7ee

@nicoduj
Copy link
Owner

nicoduj commented Feb 19, 2019

Hi all, it seems that latest firmware broke the plugin. It is in the initial http connection, will have to check and reverse engeener their changes . Meanwhile revert or don’t update !

Sent with GitHawk

@rheid
Copy link

rheid commented Feb 19, 2019

The same on my site: Error retrieving info from hub : 417 - {"code":"417"}

@gutaker
Copy link
Author

gutaker commented Feb 19, 2019

Hi all, it seems that latest firmware broke the plugin. It is in the initial http connection, will have to check and reverse engeener their changes . Meanwhile revert or don’t update !

Sent with GitHawk

After downgrading Hub firmware to 4.15.210 everything worked flawlessly.
Thanks @nicoduj - good job!

@Phoenix-DH
Copy link

It seems that the update was made to me automatically ... same problem ... argh ...
Thanks for working on it ...

@maisun
Copy link

maisun commented Feb 19, 2019

How to disable auto upgrading? And would it be possible to switch back to XMPP protocol which is now officially supported by Logitech?

@rheid
Copy link

rheid commented Feb 19, 2019

@gutaker How to downgrading the Hub Firmware?

@nicoduj
Copy link
Owner

nicoduj commented Feb 19, 2019

@lopelex (thanks to him !) pushed an updated version of the lib that should work with latest hub firmware (as well as with old one). You can try to update dependencies / uninstall and reinstall my plugin. I will test this evening and release an update probably to force the move .

Sent with GitHawk

@pponce
Copy link

pponce commented Feb 19, 2019

Nice!
I have not done much testing but i can confirm the error is gone now.
And my scenes work again.
So it's looking good so far.

All i did was uninstall and re-install.
npm uninstall -g homebridge-harmony
npm install -g homebridge-harmony

@rheid
Copy link

rheid commented Feb 19, 2019

@nicoduj also looks good on my site. huge thanks for unbelieving quick fix of the problem. I like your implementation very much!!

[2019-2-19 19:18:56] [HarmonyHub2] Kabel Fernsehen activated
[2019-2-19 19:19:00] [HarmonyHub2] INFO - onMessage : Refreshing activity to 29613497
[2019-2-19 19:19:07] [HarmonyHub2] Center activated
[2019-2-19 19:19:10] [HarmonyHub2] INFO - onMessage : Refreshing activity to 32038360

@nicoduj
Copy link
Owner

nicoduj commented Feb 19, 2019

thanks to @lopelex https://github.com/lopelex/harmony-websocket for the quick update !

@lopelex
Copy link

lopelex commented Feb 19, 2019

thanks to @reneboer

@gutaker
Copy link
Author

gutaker commented Feb 19, 2019

@rheid In case you'd like to downgrade despite the @lopelex solution, this can be done via MyHarmony desktop software only (AFAIK).

  1. Open up the App, press Shift+F9 and you'll see Update Remote screen
  2. Scroll down to the very bottom and you'll see Firmware to enable XMPP. For developers only
  3. Click Update Firmware and connect hub with USB
  4. As soon as the software detects the hub, the Install button becomes enabled.
  5. Click Install and you're done!

@nicoduj and especially @lopelex - A BIG THANK YOU!

@gutaker
Copy link
Author

gutaker commented Feb 19, 2019

Solution tested, thanks for @reneboer for input on @lopelex solution!

@gutaker gutaker closed this as completed Feb 19, 2019
nicoduj added a commit that referenced this issue Feb 19, 2019
@nicoduj nicoduj added the bug Something isn't working label Feb 19, 2019
@nicoduj nicoduj added this to To do in Harmony Hub Plugin for Homebridge via automation Feb 19, 2019
@nicoduj nicoduj moved this from To do to Done in Harmony Hub Plugin for Homebridge Feb 19, 2019
@DJay-X
Copy link

DJay-X commented Feb 19, 2019

There was an Info that XMPP is disabled by default in 4.15.250

By default, Harmony firmware will keep XMPP disabled. For those of you already using the special firmware version 4.15.210 with XMPP access, when your hub upgrades to 4.15.250, you can easily re-enable it by:

• Perform a sync from your LCD screen based Harmony remote, by going to Menu > Settings > Sync Remote, or

• From your Harmony app, go to: Menu > Harmony Setup > Add/Edit Devices & Activities > Remote & Hub > Enable XMPP

@misku
Copy link

misku commented Apr 26, 2019

Thank you all for the discussion and @lopelex for the fix. Using those changes I was able to make a python version working again: misku/pyharmony@41d9691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests