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

[plex] Unable To Add Server Always Offline #18164

Open
msw1970 opened this issue Jan 22, 2025 · 0 comments
Open

[plex] Unable To Add Server Always Offline #18164

msw1970 opened this issue Jan 22, 2025 · 0 comments
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@msw1970
Copy link

msw1970 commented Jan 22, 2025

Expected Behavior

Adding of plex server to openHAB should result in the plex server thing being online.

Current Behavior

When plex server is added with correct X-Token thing stays offline with a message "Unable to fetch API, token may be wrong?"

Running binding in debug mode shows a correct XML response, including information on the server and currently active clients which would suggest the X-Token is correct.

2025-01-22 22:24:32.300 [DEBUG] [x.internal.handler.PlexServerHandler] - Disposing PLEX Bridge Handler.
2025-01-22 22:24:32.370 [DEBUG] [x.internal.handler.PlexServerHandler] - Fetch API with config, org.openhab.binding.plex.internal.config.PlexServerConfiguration@cb8c42
2025-01-22 22:24:32.697 [DEBUG] [ex.internal.handler.PlexApiConnector] - HTTP response: <?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="3">
  <Device name="WGB01AP1004" product="Plex Media Server" productVersion="1.41.3.9314-a0bfb8370" platform="Linux" platformVersion="22.04.5 LTS (Jammy Jellyfish)" device="PC" clientIdentifier="e3bd83b77dcd5e5a19471422a9a2ad64b8af2062" createdAt="1527025847" lastSeenAt="1737583329" provides="server" owned="1" accessToken="VQPGsnXXGCqKD9iy87_v" publicAddress="x.x.x.x" httpsRequired="0" synced="0" relay="1" dnsRebindingProtection="0" natLoopbackSupported="0" publicAddressMatches="1" presence="1">
    <Connection protocol="https" address="y.y.y.y" port="32400" uri="https://y-y-y-y.70ecdc7d9bcf4f069ec9454103804c15.plex.direct:32400" local="1"/>
    <Connection protocol="https" address="x.x.x.x" port="32400" uri="https://x-x-x-x.70ecdc7d9bcf4f069ec9454103804c15.plex.direct:32400" local="0"/>
  </Device>
  <Device name="MARKS-MACBOOKPRO.local" product="Plex for Mac" productVersion="1.106.0.276-fe8d1d20" platform="macos" platformVersion="15.2" device="Linux" clientIdentifier="iguhvpmeii9foo33x3y1lprz" createdAt="1566417516" lastSeenAt="1737501599" provides="client,player,pubsub-player" owned="1" publicAddress="x.x.x.x" publicAddressMatches="1" presence="1">
  </Device>
  <Device name="TV 2020" product="Plex for Samsung" productVersion="5.90.1" platform="Tizen" platformVersion="5.5" device="20_NIKEM_QTV" clientIdentifier="c6lccqc3cx91t9aiq2xsjjon" createdAt="1731741462" lastSeenAt="1737497372" provides="client,player" owned="1" publicAddress="x.x.x.x" publicAddressMatches="1" presence="1" accessToken="VQPGsnXXGCqKD9iy87_v">
    <Connection protocol="https" address="y.y.y.y" port="32400" uri="https://y-y-y-y.70ecdc7d9bcf4f069ec9454103804c15.plex.direct:32400" local="1"/>
    <Connection protocol="https" address="x.x.x.x" port="32400" uri="https://x-x-x-x.70ecdc7d9bcf4f069ec9454103804c15.plex.direct:32400" local="0"/>
  </Device>
</MediaContainer>
2025-01-22 22:24:32.712 [DEBUG] [ex.internal.handler.PlexApiConnector] - MediaContainer 3

Note - IP addresses have been obfuscated (x.x.x.x for public IP address and y.y.y.y for internal IP address)

Possible Solution

Steps to Reproduce (for Bugs)

Can reproduce at will by removing and re-adding server

Context

Your Environment

  • Version used: openHAB 4.3.0 Release Build
  • Operating System and version: openHABian (Rasbian 11 bullseye)
@msw1970 msw1970 added the bug An unexpected problem or unintended behavior of an add-on label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

1 participant