ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.81k stars 268 forks source link

Plex Integration Not Populating #1543

Open Sure4Thing opened 10 months ago

Sure4Thing commented 10 months ago

Environment

Docker

Version

0.13.4

Describe the problem

I can't understand what I am doing wrong here.

Internal Address: https://ip:32400 I added 401 to the status codes Integration: I went to my xml, extracted out the API key and pasted the key in the secret.

The plex app shows online with a green status icon. My plex widget shows nothing playing even though there is.

Am I missing something painfully obvious? The only thing in my console log is Ping of app Plex returned 401

I am seeing no errors anywhere

Logs

https://pastebin.com/5cbXhSzL

_app-01905e0ff410ac10.js:132 [DEPRECATED] Use createWithEqualityFn instead of create or use useStoreWithEqualityFn instead of useStore. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937 (anonymous) @ _app-01905e0ff410ac10.js:132 r @ _app-01905e0ff410ac10.js:132 u @ _app-01905e0ff410ac10.js:25 ab @ framework-18c7e6fcf99e5daa.js:9 i @ framework-18c7e6fcf99e5daa.js:9 oO @ framework-18c7e6fcf99e5daa.js:9 (anonymous) @ framework-18c7e6fcf99e5daa.js:9 oF @ framework-18c7e6fcf99e5daa.js:9 oS @ framework-18c7e6fcf99e5daa.js:9 x @ framework-18c7e6fcf99e5daa.js:33 T @ framework-18c7e6fcf99e5daa.js:33 _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted) _app-01905e0ff410ac10.js:132 info Ping of app "Plex" (https://192.168.1.xxx:32400) returned 401 (Accepted)

Context

flameshot_2023-11-01_12-29 flameshot_2023-11-01_12-30 flameshot_2023-11-01_12-30_1 flameshot_2023-11-01_12-30_2

Please tick the boxes

Sure4Thing commented 10 months ago

On advice of @ajnart I tried to re-add the api key and with the console open, noticed the below runtime errors

https://pastebin.com/gEkARJGq

SeDemal commented 10 months ago

https://discord.com/channels/972958686051962910/1169264357830557849

ajnart commented 9 months ago

Can you try and tell us if this issue still happens as of the latest image ? v0.14.0 ?

ajnart commented 9 months ago

@Sure4Thing Did you see my previous message ?

Sure4Thing commented 9 months ago

@ajnart sorry I missed that. What do you want me to check? It was fine when I switched it to http. What difference should I be looking for?

quadcom commented 8 months ago

I'm having the same issue but in my case, I have no error messages in the Homarr logs.

I should add that until I added /web/ to the end of the internal URL the status icon was red.

image

My external URL is a FQDN with SSL running through NPM. That is why there is no port number at the end, NPM translates 80 > 32400. image

image

quadcom commented 5 months ago

There is a conflict between the integration and the widget.

The integration needs "URL:PORT/web" in order to report a running instance. But the widget cannot have anything trailing "IP:PORT". Adding "/web" to the integration configuration will break the media server widget from reporting any activity.

It's either a status report (green mark) or the streaming activity widget. You can't have both functions at the same time.

These two components need to be aligned to function using a common IP:PORT configuration.

EDIT: The integration will work without the "/web" as long as "401 - Unauthorized" is included in the HTTP status codes is included on the Network tab.

I still think this should be reviewed and modified so that other status codes would work. Since there is no way to authorize Homarr to access the Plex server, 401 is the ONLY response that would be returned without the '/web' path included.