clemenskoprolin / light-party

Light Party is a controller for Philips Hue lights available for Windows 10. Its main feature is a party mode, where you can sync your lights to your music live!
GNU Affero General Public License v3.0
27 stars 1 forks source link

Bridge registration not working for some users. #2

Closed clemenskoprolin closed 4 years ago

clemenskoprolin commented 4 years ago

Describe the bug Multiple users have problems to register this application to their Bridge. They are stuck on the "Register Application" Page.

To Reproduce Introduction -> Legal information -> Location of Bridge ("Searching for your Philips Hue Bridge ...") -> Registration of the application ("Register Application")

Expected behavior The application should register itself and navigate to BridgeConfig where they should see information about the Bridge like the name, version etc.

Screenshots 4R73BGH (Thanks a lot to garywoo on Reddit for this screenshot!)

Information:

Additional context Personally, I don’t have this issue. Therefore, I have to guess what exactly the reason for this bug is and it could take a few updates and commits before it is completely fixed. With the commits 6e5e43f25067691131b19d5b8b4b319a6ced0d05 and e1c894b518c8163e00f01071acf5706ade510cf0 I already tried to fix it, but users are still reporting the bug.

clemenskoprolin commented 4 years ago

With the commits 0cba38d14c6896f5c38701d70d1fe8f68d2c7b0c and 460e6c200f388edd120f4556c4a79ca6b101b09a I tried again to fix this issue. Light Party version 1.1.1 will contain these fixes, but like mantiond above: I can't validade that these commits fix this issue.

clemenskoprolin commented 4 years ago

Thanks to the reddit user Xornop_ and the new log file with the commit b5c037121ef0c6a409412dee97fe1883a8f239bc there is now a error log!

Error on registration process - Message: An error occurred while sending the request. - InnerException: System.Exception: De tekst die bij deze foutcode hoort, kan niet worden gevonden. Kan geen verbinding met de server maken. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at System.Net.Http.HttpHandlerToFilter.<SendAsync>d__15.MoveNext() + 0x79d

Translations: De tekst die bij deze foutcode hoort, kan niet worden gevonden - The text belonging to this error can not be found. Kan geen verbinding met de server maken. - Unable to connect to the server.

Garywoo commented 4 years ago

I updated to 1.1.1. Launched the app, and it was on the same screen as in the screenshot. Pressing the button on my bridge didn’t do anything in the app. The issue continues.

clemenskoprolin commented 4 years ago

Thanks for the info! You could help me by sending your log, too. Please uninstall your current version of Light Party and install this version (Here is the documentation for the manual installation). Once you start the application, you should see a message like "DebugLog is activated. Path to file: ". Now go on with the normal setup until the bug occurs. Then close Light Party and copy the file whose path you saw in beforehand. The easiest way to send me the log is probably my mail (contact@clemenskoprolin.com).

clemenskoprolin commented 4 years ago

It seems like the commit e6d58da4bc5b970f94070370d3da367b23a9bb99 fixed the bug. It was caused by missing capabilities in the Package.appxmanifest. The fix is part of the update 1.1.2. However, I'll wait until the update rolls out and I get final feedback if the issue is really solved.

clemenskoprolin commented 4 years ago

Since I'm not getting any more reports of this bug, I'll close this issue for the time being. Thank you for all who helped fixing it!