Page 1 of 2

Plex TV shows not showing up

Posted: 07 Oct 2020, 00:00
by boingolover
Apple TV 4K 32gb, TVOS 14.0.2, using Plex Server 1.20.2.3402 (not cloud enabled) with GDM discovery enabled. MrMC 3.9-9 GIT:2020-09-27-b361e48. I've enabled GDM on the Plex service within MrMC. This works, movies are fine. TV shows play fine from On Deck, Recently Added and Continue Watching. But when I go to the TV Shows menu option, select a title, then it shows no seasons and a strange title at the top. It's a very similar issue to this:

https://mrmc.tv/forum/viewtopic.php?t=4783

However this is with a plex server. This works fine with the plex app.

Any ideas?

EDIT - debug log uploaded as T1L7P.log

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 03:35
by amet

Code: Select all

 CurlFile::Open(0x16bd0a1c0) http://192.168.5.70:32400/library/metadata/679/children?X-Plex-Token=PLEXTOKEN
18:59:16.900 T:6103805952   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
18:59:16.900 T:6103805952   ERROR: CCurlFile::Open failed with code 400 for http://192.168.5.70:32400/library/metadata/679/children?X-Plex-Token=PLEXTOKEN
It’s clear that it fails, it’s not clear why it fails :(

Does it make any difference if you sign in manually without GDM discovery?

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 13:31
by boingolover
So sorry if this is a dumb question, but how do I retrieve the MrMC logs myself? That would be useful.

Also, I'm even more stumped. If I run curl from my mac on the same subnet, I get this:

Code: Select all

(nathan@s-mart:~)% curl -vvv "http://192.168.5.70:32400/library/metadata/679/children?X-Plex-Token=PLEXTOKEN"
*   Trying 192.168.5.70...
* TCP_NODELAY set
* Connected to 192.168.5.70 (192.168.5.70) port 32400 (#0)
> GET /library/metadata/679/children?X-Plex-Token=PLEXTOKEN HTTP/1.1
> Host: 192.168.5.70:32400
> User-Agent: curl/7.64.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< X-Plex-Protocol: 1.0
< Content-Type: text/xml;charset=utf-8
< Content-Length: 2675
< Connection: Keep-Alive
< Keep-Alive: timeout=20
< Cache-Control: no-cache
< Date: Wed, 07 Oct 2020 13:28:33 GMT
< 
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="3" allowSync="1" art="/library/metadata/679/art/1601223001" banner="/library/metadata/679/banner/1601223001" identifier="com.plexapp.plugins.library" key="679" librarySectionID="6" librarySectionTitle="TV Shows" librarySectionUUID="b586b8c0-1bd2-498a-be62-01a2c98d6291" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1601660684" nocache="1" parentIndex="1" parentTitle="Columbo" parentYear="1968" summary="Many criminals made the mistake of underestimating Lieutenant Columbo, a homicide investigator with a crumpled trench-coat and a beat-up car, who certainly acted as an incompetent bumbler.&#xD;&#xA;&#xD;&#xA;But he was so polite to every suspect, and he talked so much about his wife (who we never got to see on any episode, but who many believe later had her own show, starring Kate Mulgrew, later of Star Trek: Voyager fame) that he lulled even the shrewdest murderer into a false sense of security.&#xD;&#xA;&#xD;&#xA;And although the audience had witnessed the murder in the beginning of each episode, it was still a surprise to see what mistakes the killers had made during the seemingly perfect murder." theme="/library/metadata/679/theme/1601223001" thumb="/library/metadata/679/thumb/1601223001" title1="TV Shows" title2="Columbo" viewGroup="season" viewMode="65593">
<Directory leafCount="17" thumb="/library/metadata/679/thumb/1601223001" viewedLeafCount="0" key="/library/metadata/679/allLeaves" title="All episodes" />
<Directory ratingKey="680" key="/library/metadata/680/children" parentRatingKey="679" guid="com.plexapp.agents.thetvdb://70369/1?lang=en" parentGuid="com.plexapp.agents.thetvdb://70369?lang=en" type="season" title="Season 1" parentTitle="Columbo" summary="" index="1" parentIndex="1" thumb="/library/metadata/680/thumb/1601223001" art="/library/metadata/679/art/1601223001" parentThumb="/library/metadata/679/thumb/1601223001" parentTheme="/library/metadata/679/theme/1601223001" leafCount="9" viewedLeafCount="0" addedAt="1601170933" updatedAt="1601223001">
</Directory>
<Directory ratingKey="689" key="/library/metadata/689/children" parentRatingKey="679" guid="com.plexapp.agents.thetvdb://70369/2?lang=en" parentGuid="com.plexapp.agents.thetvdb://70369?lang=en" type="season" title="Season 2" parentTitle="Columbo" summary="" index="2" parentIndex="1" thumb="/library/metadata/689/thumb/1601223001" art="/library/metadata/679/art/1601223001" parentThumb="/library/metadata/679/thumb/1601223001" parentTheme="/library/metadata/679/theme/1601223001" leafCount="8" viewedLeafCount="0" addedAt="1601181884" updatedAt="1601223001">
</Directory>
</MediaContainer>
* Connection #0 to host 192.168.5.70 left intact
* Closing connection 0
(nathan@s-mart:~)% 

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 13:39
by boingolover
from the plex server logs, this might be relevant:

Code: Select all

Oct 06, 2020 18:55:50.954 [14284] DEBUG - Completed: [127.0.0.1:59456] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (3 live) GZIP 20010ms 5 bytes (pipelined: 10)
Oct 06, 2020 18:55:50.966 [6840] DEBUG - Request: [127.0.0.1:59456 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (3 live) GZIP
Oct 06, 2020 18:55:50.966 [6840] DEBUG - Content-Length is -1 (of total: -1).
Oct 06, 2020 18:55:57.070 [14752] ERROR - Had trouble breaking X-Plex-Token
Oct 06, 2020 18:55:57.070 [14752] ERROR - ERROR: Parsing request failed.
Oct 06, 2020 18:55:57.070 [14752] DEBUG - Request: [192.168.5.142:50027 (WAN)] GET /library/metadata/679/children?X-Plex-Token (4 live) GZIP
Oct 06, 2020 18:55:57.070 [14752] ERROR - Error parsing HTTP request: ET /library/metadata/679/children?X-Plex-Token HTTP/1.1
Host: 192.168.5.70:32400
User-Agent: MrMC/3.9-9 (AppleTV; CPU OS 14_0_2 like Mac OS X)MrMC HW_AppleTV/6.2 App_Bitness/64 Version/3.9-9-Git:2020-09-27-b361e48
Accept: */*
Accept-Charset: UTF-8,*;q=0.8
Accept-Encoding: gzip
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 0
Content-Type: application/xml; charset=utf-8
Expires: Sat, 26 Jul 1997 05:00:00 GMT
Pragma: no-cache
X-Plex-Client-Identifier: 1f56a81c-dace-44b2-8276-a521cb2984fb
X-Plex-Device: AppleTV6,2
X-Plex-Device-Name: Living-Room-4K
X-Plex-Model: AppleTV6,2
X-Plex-Platform: TVOS
X-Plex-Platform-Version: 14.0.2
X-Plex-Product: MrMC
X-Plex-Version: 3.9-9

Oct 06, 2020 18:55:57.070 [14284] DEBUG - Completed: [192.168.5.142:50027] 400 GET /library/metadata/679/children?X-Plex-Token (4 live) GZIP 0ms 355 bytes

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 14:55
by amet
Plex server is also reporting 400 error

You can see the log using webui, follow the debuglog instructions for MrMC 3.8.1 and lower

Code: Select all

  GET /library/metadata/679/children?X-Plex-Token=PLEXTOKEN
You can’t run that without the actual token, plex will return the error

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 15:11
by boingolover
I have local auth turned off. If you look at my actual curl command, it was passing the string literal PLEXTOKEN and it worked fine. I'm going to do a wireshark dump later, but it looks like it's an actual malformed http request coming from MrMC.

Code: Select all

Oct 06, 2020 18:55:57.070 [14752] ERROR - Error parsing HTTP request: ET /library/metadata/679/children?X-Plex-Token HTTP/1.1
ET vs. GET? I'm going to do the wireshark dump to verify, but it's very odd.

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 15:16
by amet
It’s possible that the url is malformed :(

Would be difficult to troubleshoot from here without being able to access the server.

Any ways you could share the server access? Vpn or some other way? It’s sensitive info if you can, feel free to contact me on support at mrmc dot tv

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 16:06
by boingolover
so it wasn't a malformed http request per-se, the GE vs. GET thing was a red herring. After looking at a wireshark capture it's not a malformed http request, but this is what's being sent via MrMC and plex doesn't like it:

Code: Select all

(nathan@s-mart:~)% curl -vvv "http://192.168.5.70:32400/library/metadata/679/children?X-Plex-Token"
*   Trying 192.168.5.70...
* TCP_NODELAY set
* Connected to 192.168.5.70 (192.168.5.70) port 32400 (#0)
> GET /library/metadata/679/children?X-Plex-Token HTTP/1.1
> Host: 192.168.5.70:32400
> User-Agent: curl/7.64.1
> Accept: */*
> 
< HTTP/1.1 400 Bad Request
< X-Plex-Protocol: 1.0
< Content-Length: 89
< Content-Type: text/html
< Connection: close
< Cache-Control: no-cache
< Date: Wed, 07 Oct 2020 16:05:05 GMT
< 
* Closing connection 0
<html><head><title>Bad Request</title></head><body><h1>400 Bad Request</h1></body></html>%                                                                               (nathan@s-mart:~)% 
Plex doesn't like that there is no = sign after the X-Plex-Token. It doesn't seem to mind an empty token, however:

Code: Select all

(nathan@s-mart:~)% curl -vvv "http://192.168.5.70:32400/library/metadata/679/children?X-Plex-Token="
*   Trying 192.168.5.70...
* TCP_NODELAY set
* Connected to 192.168.5.70 (192.168.5.70) port 32400 (#0)
> GET /library/metadata/679/children?X-Plex-Token= HTTP/1.1
> Host: 192.168.5.70:32400
> User-Agent: curl/7.64.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< X-Plex-Protocol: 1.0
< Content-Type: text/xml;charset=utf-8
< Content-Length: 2825
< Connection: Keep-Alive
< Keep-Alive: timeout=20
< Cache-Control: no-cache
< Date: Wed, 07 Oct 2020 16:05:45 GMT
< 
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="3" allowSync="1" art="/library/metadata/679/art/1601223001" banner="/library/metadata/679/banner/1601223001" identifier="com.plexapp.plugins.library" key="679" librarySectionID="6" librarySectionTitle="TV Shows" librarySectionUUID="b586b8c0-1bd2-498a-be62-01a2c98d6291" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1601660684" nocache="1" parentIndex="1" parentTitle="Columbo" parentYear="1968" summary="Many criminals made the mistake of underestimating Lieutenant Columbo, a homicide investigator with a crumpled trench-coat and a beat-up car, who certainly acted as an incompetent bumbler.&#xD;&#xA;&#xD;&#xA;But he was so polite to every suspect, and he talked so much about his wife (who we never got to see on any episode, but who many believe later had her own show, starring Kate Mulgrew, later of Star Trek: Voyager fame) that he lulled even the shrewdest murderer into a false sense of security.&#xD;&#xA;&#xD;&#xA;And although the audience had witnessed the murder in the beginning of each episode, it was still a surprise to see what mistakes the killers had made during the seemingly perfect murder." theme="/library/metadata/679/theme/1601223001" thumb="/library/metadata/679/thumb/1601223001" title1="TV Shows" title2="Columbo" viewGroup="season" viewMode="65593">
<Directory leafCount="17" thumb="/library/metadata/679/thumb/1601223001" viewedLeafCount="13" key="/library/metadata/679/allLeaves" title="All episodes" />
<Directory ratingKey="680" key="/library/metadata/680/children" parentRatingKey="679" guid="com.plexapp.agents.thetvdb://70369/1?lang=en" parentGuid="com.plexapp.agents.thetvdb://70369?lang=en" type="season" title="Season 1" parentKey="/library/metadata/679" parentTitle="Columbo" summary="" index="1" parentIndex="1" viewCount="12" lastViewedAt="1601778299" thumb="/library/metadata/680/thumb/1601223001" art="/library/metadata/679/art/1601223001" parentThumb="/library/metadata/679/thumb/1601223001" parentTheme="/library/metadata/679/theme/1601223001" leafCount="9" viewedLeafCount="9" addedAt="1601170933" updatedAt="1601223001">
</Directory>
<Directory ratingKey="689" key="/library/metadata/689/children" parentRatingKey="679" guid="com.plexapp.agents.thetvdb://70369/2?lang=en" parentGuid="com.plexapp.agents.thetvdb://70369?lang=en" type="season" title="Season 2" parentKey="/library/metadata/679" parentTitle="Columbo" summary="" index="2" parentIndex="1" viewCount="5" lastViewedAt="1602040059" thumb="/library/metadata/689/thumb/1601223001" art="/library/metadata/679/art/1601223001" parentThumb="/library/metadata/679/thumb/1601223001" parentTheme="/library/metadata/679/theme/1601223001" leafCount="8" viewedLeafCount="4" addedAt="1601181884" updatedAt="1601223001">
</Directory>
</MediaContainer>
* Connection #0 to host 192.168.5.70 left intact
* Closing connection 0
(nathan@s-mart:~)% 
It also response correctly with no X-Plex-Token parameter at all, or with garbage data.

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 16:12
by amet
I’ll make some changes in code to not set the “ X-Plex-Token” if there is no token... that should help in your case

Re: Plex TV shows not showing up

Posted: 07 Oct 2020, 16:14
by boingolover
This is the actual captured stream:

Code: Select all

GET /library/metadata/679/children?X-Plex-Token HTTP/1.1
Host: 192.168.5.70:32400
User-Agent: MrMC/3.9-9 (AppleTV; CPU OS 14_0_2 like Mac OS X)MrMC HW_AppleTV/6.2 App_Bitness/64 Version/3.9-9-Git:2020-09-27-b361e48
Accept: */*
Accept-Charset: UTF-8,*;q=0.8
Accept-Encoding: gzip
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 0
Content-Type: application/xml; charset=utf-8
Expires: Sat, 26 Jul 1997 05:00:00 GMT
Pragma: no-cache
X-Plex-Client-Identifier: 1f56a81c-dace-44b2-8276-a521cb2984fb
X-Plex-Device: AppleTV6,2
X-Plex-Device-Name: Living-Room-4K
X-Plex-Model: AppleTV6,2
X-Plex-Platform: TVOS
X-Plex-Platform-Version: 14.0.2
X-Plex-Product: MrMC
X-Plex-Version: 3.9-9

HTTP/1.1 400 Bad Request
X-Plex-Protocol: 1.0
Content-Type: text/html
Connection: close
Content-Encoding: gzip
X-Plex-Content-Original-Length: 89
X-Plex-Content-Compressed-Length: 81
Content-Length: 81
Cache-Control: no-cache
Date: Wed, 07 Oct 2020 15:53:39 GMT

<html><head><title>Bad Request</title></head><body><h1>400 Bad Request</h1></body></html>