johnholbrook / streamdeck-pihole

Streamdeck plugin for monitoring & controlling Pi-hole
https://apps.elgato.com/plugins/us.johnholbrook.pihole
32 stars 5 forks source link

Stream Deck macOS 6.0 update broke plugin #12

Closed markmonroy closed 1 year ago

markmonroy commented 1 year ago

Hi,

I just updated to Elgato's Stream Deck 6.0 software on macOS Ventura. This plugin seems to have lost connection with my Pi-hole.

tempImageDSbwfl Screenshot 2022-11-16 at 7 53 10 AM

Thanks.

funkydrgonzo commented 1 year ago

same here on windows

dz-igner commented 1 year ago

same here (Windows 11, Pi-hole v5.14.1 / FTL v5.19.2 / Web Interface v5.17, Stream Deck SW-Version 6.0.0.17703) - API connection

markmonroy commented 1 year ago

I see now that this is a known issue with Stream Deck 6.0 and is actually affecting numerous plugins. Via Reddit:

Stream Deck 6 has been upgraded to use Qt6 which uses an updated version of Chromium under the hood. This is causing CORs issues with some javascript Stream Deck plugins. We are actively working to resolve this issue!

Confirmed that this is what is affecting this plugin by enabling the Stream Deck debugger:

code.html:1 Access to XMLHttpRequest at 'http://pi.hole/admin/api.php' from origin 'file://' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Houdini7 commented 1 year ago

There is a Beta StreamDeck app available. This has resolved the issue for me: https://www.reddit.com/r/StreamDeckSDK/comments/yxm1zb/comment/ix8lr1r/?utm_source=share&utm_medium=web2x&context=3

ballinascreen-hacs commented 1 year ago

There is a Beta StreamDeck app available. This has resolved the issue for me: https://www.reddit.com/r/StreamDeckSDK/comments/yxm1zb/comment/ix8lr1r/?utm_source=share&utm_medium=web2x&context=3

Thanks for the heads-up - this fixed the problem for me too. 👍

johnholbrook commented 1 year ago

Thanks everyone for helping to track this down!

Looks like elgato has released Stream Deck 6.0.1 which fixes this problem, so I'm going to go ahead and close the issue.