Arno500 / plex-richpresence

A fast and lightweight Plex app for Discord Rich Presence
41 stars 2 forks source link

Client timeout error on launch every time #17

Open HelloImStephen opened 1 year ago

HelloImStephen commented 1 year ago

debug_log.txt

Hello, Not sure what happened. I downloaded this for the first time yesterday and it was working fine. The service stayed open and running without issue whether I was actively on my PC or not - and I noticed it automatically my discord status when I started watching something even on new client - Everything working as it should essentially.

But today I start Plex and notice my discord status didn't update. Went to my PC and the Plex Rich Presence icon was no longer in the hidden icons menu on the task bar. Thought maybe my PC restarted so I re-opened it and set it to start on log in. Went back to play something and again my status didn't update. Went back to my PC and again PRP was closed. Opened it again and observed itself close out after 5-10 seconds. Tried again and same thing kept happening - I open it from the .exe, icon appears on my taskbar and it disappears 10 seconds later. Deleted the AppData folder and the .exe and redownloaded it. Signed back into Plex like the initial set up and again, it closed out after 10 seconds.

Not sure what would cause this - Not changes/updates to either my PC, Plex Server or Network.

Plex Server is local I'm the admin Only watching on local clients Have Plex Pass Plex Server is on Win 10 Personal PC with PRP/Discord is on Win 11

Let me know if you need anything else, thank you!

Arno500 commented 1 year ago

Hello Stephen! It seems PRP crashed when trying to retrieve the sessions. For some reason, there was a timeout. You said there was no change to the network, so I'm a bit puzzled :/ Can you send me the Plex Server version that you currently have deployed?

Also, was the IP that you hid a local IP, or a public one? As a reminder, private IPs (so not accessible from the Internet) are in the following ranges:

Thanks a lot!

brw commented 10 months ago

I'm having the same or a similar issue. For some reason Plex-Richpresence seems to crash pretty often with this error and I'm not sure why. As a workaround I've just put it in a systemd service that always restarts on failure, as the problem does seem to resolve itself after a while. The time-outs seem to happen pretty randomly, though it might be more likely to happen when the server is under load. The log file shows that it connects fine at first but at some point contacting /status/sessions just results in a time-out.

In my case it's contacting a public/remote IP. Running the latest Plex server beta (1.40.0.7775), but this has been happening for a while, probably ever since I've started using it like a year ago.

debug_log.txt