plex-richpresence icon indicating copy to clipboard operation
plex-richpresence copied to clipboard

RPC doesn't always show

Open SleepDaemon opened this issue 1 year ago • 28 comments

Sometimes the it shows and most times it doesn't. I couldn't get the app to show the RPC consistently. I don't know if you have to open the plex-rpc app first then discord and plex itself or vice versa.

SleepDaemon avatar Jan 13 '24 17:01 SleepDaemon

Hi @SleepDaemon ,

Are you on an unstable network? Around when did you start using the app for the first time?

I'm fearing this is because of the last update. Can you attach your logs? (be careful to hide your private IPs) Otherwise, no, you don't need to do anything in any particular order there: just make sure that the app is opened with Discord (the order or timing doesn't matter) and play something on Plex (it should also catch up already playing content).

Thanks!

Arno500 avatar Jan 14 '24 00:01 Arno500

Hi @SleepDaemon ,

Are you on an unstable network? Around when did you start using the app for the first time?

I'm fearing this is because of the last update. Can you attach your logs? (be careful to hide your private IPs) Otherwise, no, you don't need to do anything in any particular order there: just make sure that the app is opened with Discord (the order or timing doesn't matter) and play something on Plex (it should also catch up already playing content).

Thanks!

Hey, where can I find log files? Also I am not on a unstable network, and I have been using this app for few years now. I can confirm been using it since at least v1.17 but I am also sure been using it before that as well.

SleepDaemon avatar Jan 14 '24 08:01 SleepDaemon

Any response?

SleepDaemon avatar Jan 17 '24 10:01 SleepDaemon

Sorry, was fully busy recently. The logs are in your user profile, AppData\Roaming\Arno & Co\Plex-Richpresence if you are on Windows. Alright, then it does point to an issue with the way the latest version is dealing with connections in the background. I would suspect that a connection gets closed, but does not recover.

Arno500 avatar Jan 17 '24 11:01 Arno500

Ok so, the debug file was like 3k lines long and it was mostly of older versions. So I deleted it, and then went ahead to open the app + plex + discord. To generate a new one with newest version. I also had 2 of the same devices listed in config so I cleared that and added my laptop again. And somehow, doing that made it show up. I will try to recreate it and hope to get a log of it.

Also anyway I can privately shared the log file?

SleepDaemon avatar Jan 17 '24 14:01 SleepDaemon

Yes, you can send it to me:

Arno500 avatar Jan 17 '24 14:01 Arno500

i think i got it

SleepDaemon avatar Jan 17 '24 14:01 SleepDaemon

hi, so it seems to be fix just from clearing the devices in the config file. I will still send the .txt of the log just in case but I couldn't reproduce the issue. If it happens again I will update this issue and send you another email with updated log.

SleepDaemon avatar Jan 17 '24 17:01 SleepDaemon

Hi, the issue is back so I emailed you the updated log file.

SleepDaemon avatar Jan 19 '24 11:01 SleepDaemon

You mispelled it :)

Arno500 avatar Jan 19 '24 11:01 Arno500

You mispelled it :)

ye see it now, ive send it. (hopefully got it right this time)

SleepDaemon avatar Jan 19 '24 13:01 SleepDaemon

keep posted :)

SleepDaemon avatar Jan 25 '24 13:01 SleepDaemon

I am currently pretty busy with other stuff, but don't worry, this is on the pile!

Arno500 avatar Jan 29 '24 17:01 Arno500

(cleaned my email from there, working on the fix ;) )

Arno500 avatar Feb 18 '24 23:02 Arno500

I pushed a new version that should build and will update automatically on your computer on the next restart (you should see 1.9.1 as the version). Please advise if you still see the issue! Best, Arno

Arno500 avatar Feb 19 '24 02:02 Arno500

how long does it take for new version to build?

SleepDaemon avatar Feb 20 '24 10:02 SleepDaemon

It's already live, you should see it when right-clicking on the icon in your task bar (after a restart of the app or two)

Arno500 avatar Feb 20 '24 11:02 Arno500

It's already live, you should see it when right-clicking on the icon in your task bar (after a restart of the app or two)

Restarted it like 10 times still saying 1.9.0

SleepDaemon avatar Feb 20 '24 13:02 SleepDaemon

In that case, you can find it there: https://gitlab.com/Arno500/plex-richpresence/-/releases/1.9.1

Arno500 avatar Feb 20 '24 14:02 Arno500

seems to be connection gets closed and not get recovered.

SleepDaemon avatar Feb 20 '24 17:02 SleepDaemon

(I removed your logs for confidentiality purposes, but I downloaded it before) I think the script is getting answers from the IPs, but it does not seem those are the good ones:

  • 10.xx.xx.xx could be correct, this is a local IP, so it could be your server (if it is on another machine, supposedly)
  • 172.xx.xx.xx is a range generally used by Docker: do you have Docker running on your computer? If yes, do you have some service listening on 32400 in there?

What is really weird is that apparently all IPs are responding "OK" to a dumb TCP test (was successfully contacted, Plex RP is simply opening a TCP connection and confirms it could open it, so something somewhere on your computer is definitely answering), but when connecting through WebSocket the other ends just kills the connection. It could hint at a proxy answering to everything (though a proxy on 32400 would be weird) or some sort of network weirdness on your machine. I'm trying to see if I can improve the connection test to properly ping the server and only include the ones that could really work

Arno500 avatar Feb 20 '24 19:02 Arno500

None of these servers are mine. They are run by some people I know. Like a online community where if you meet the weekly streaming usage you won't be kicked.

On Tue, Feb 20, 2024, 10:53 PM Arno DUBOIS @.***> wrote:

(I removed your logs for confidentiality purposes, but I downloaded it before) I think the script is getting answers from the IPs, but it does not seem those are the good ones:

  • 10.xx.xx.xx could be correct, this is a local IP, so it could be your server (if it is on another machine, supposedly)
  • 172.xx.xx.xx is a range generally used by Docker: do you have Docker running on your computer? If yes, do you have some service listening on 32400 in there? What is really weird is that apparently all IPs are responding "OK" to a dumb TCP test (was successfully contacted, Plex RP is simply opening a TCP connection and confirms it could open it, so something somewhere on your computer is definitely answering), but when connecting through WebSocket the other ends just kills the connection. It could hint at a proxy answering to everything (though a proxy on 32400 would be weird) or some sort of network weirdness on your machine. I'm trying to see if I can improve the connection test to properly ping the server and only include the ones that could really work

— Reply to this email directly, view it on GitHub https://github.com/Arno500/plex-richpresence/issues/19#issuecomment-1954951542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDOXQKFSJ3OZ3D2PO7SGCLYUT5LJAVCNFSM6AAAAABBZOT442VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUHE2TCNJUGI . You are receiving this because you were mentioned.Message ID: @.***>

SleepDaemon avatar Feb 20 '24 19:02 SleepDaemon

btw it did work before but once it stops working it just never works again.

On Tue, Feb 20, 2024, 10:55 PM Mahmud Esad Koc @.***> wrote:

None of these servers are mine. They are run by some people I know. Like a online community where if you meet the weekly streaming usage you won't be kicked.

On Tue, Feb 20, 2024, 10:53 PM Arno DUBOIS @.***> wrote:

(I removed your logs for confidentiality purposes, but I downloaded it before) I think the script is getting answers from the IPs, but it does not seem those are the good ones:

  • 10.xx.xx.xx could be correct, this is a local IP, so it could be your server (if it is on another machine, supposedly)
  • 172.xx.xx.xx is a range generally used by Docker: do you have Docker running on your computer? If yes, do you have some service listening on 32400 in there? What is really weird is that apparently all IPs are responding "OK" to a dumb TCP test (was successfully contacted, Plex RP is simply opening a TCP connection and confirms it could open it, so something somewhere on your computer is definitely answering), but when connecting through WebSocket the other ends just kills the connection. It could hint at a proxy answering to everything (though a proxy on 32400 would be weird) or some sort of network weirdness on your machine. I'm trying to see if I can improve the connection test to properly ping the server and only include the ones that could really work

— Reply to this email directly, view it on GitHub https://github.com/Arno500/plex-richpresence/issues/19#issuecomment-1954951542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDOXQKFSJ3OZ3D2PO7SGCLYUT5LJAVCNFSM6AAAAABBZOT442VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUHE2TCNJUGI . You are receiving this because you were mentioned.Message ID: @.***>

SleepDaemon avatar Feb 20 '24 20:02 SleepDaemon

New release just dropped: https://gitlab.com/Arno500/plex-richpresence/-/releases/1.9.2 You may try this one and HOPEFULLY your problem goes away.....

Arno500 avatar Feb 20 '24 21:02 Arno500

New release just dropped: https://gitlab.com/Arno500/plex-richpresence/-/releases/1.9.2 You may try this one and HOPEFULLY your problem goes away.....

1.9.2 works, but for some reason in the RPC it is not showing the show/movie poster image.

SleepDaemon avatar Feb 21 '24 05:02 SleepDaemon

Okay, it seems Imgur failed for some reason. I moved to litterbox for temporary storage in the latest version (https://gitlab.com/Arno500/plex-richpresence/-/releases/1.9.4) The poster should now reappear!

Arno500 avatar Feb 21 '24 22:02 Arno500

Updated to latest version, and the app just closes itself after opening it. Like I open it and then few seconds later it closes it self. I have attached the debug log file. But I think this may be the issue:

2024/05/13 10:37:41 Error uploading image to litterbox: Post "https://litterbox.catbox.moe/resources/internals/api.php": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

debug_log.txt

SleepDaemon avatar May 13 '24 07:05 SleepDaemon

Updated to latest version, and the app just closes itself after opening it. Like I open it and then few seconds later it closes it self. I have attached the debug log file. But I think this may be the issue:

2024/05/13 10:37:41 Error uploading image to litterbox: Post "https://litterbox.catbox.moe/resources/internals/api.php": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

debug_log.txt

@Arno500

SleepDaemon avatar May 13 '24 07:05 SleepDaemon

Should be better since the last fixes with Litterbox, will close this issue

Arno500 avatar Aug 29 '24 15:08 Arno500

Should be better since the last fixes with Litterbox, will close this issue

Just updated it today, and noticed it got fixed thanks

SleepDaemon avatar Aug 29 '24 15:08 SleepDaemon