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

Bug: Failed to call service rest_command/pmha_playmedia. Service not found #49

Closed
drewid79 opened this issue Oct 18, 2021 · 9 comments
Closed
Assignees

Comments

@drewid79
Copy link

Whenever I play anything a toast notification pops up: Failed to call service rest_command/pmha_playmedia. Service not found

Steps to reproduce the behavior:
I just installed the repo through HACS and set up the card through the GUI.
The error occurs every time I play anything.
The media plays without any issue, just an annoying error message to see every time.

Please check below if true:

[x ] I am running Home Assistant on HTTP protocol
[ ] I am running BOTH Home Assistant AND Plex on HTTPS protocol
[ x] My Plex server is accessible through protocol, port and ip/hostname I have specified for the card.
[ ] My Plex server is running on HTTPS and has a valid certificate.

type: custom:plex-meets-homeassistant

protocol: http
sort: ''
playTrailer: true
showExtras: true
showSearch: true
ip: 192.168.1.xxx
token: itAhtzJQU4xxxxxxxxxxx
port: '32400'
entity:

  • plexPlayer | Roku Ultra | 192.168.1.xxx | bdc63183cde0a02e2062ae7b3571e9a4
    libraryName: Deck
    maxCount: ''
    maxRows: ''
    useHorizontalScroll: 'No'
    displayTitleMain: 'Yes'
    displaySubtitleMain: 'Yes'
    minWidth: ''
    minEpisodeWidth: ''
    minExpandedWidth: ''
    fontSize1: ''
    fontSize2: ''
    fontSize3: ''
    fontSize4: ''
    minExpandedHeight: ''
    title: PLEX ON DECK
    .

Card Version
3.2.1

Plex Version
4.63.0

@JurajNyiri
Copy link
Owner

Please check developer tools in the browser, when you click play. Is there any error in the console log? If not, could you screenshot network tab after clicking play and also check for any red / failed requests responses?

@drewid79
Copy link
Author

Screen Shot 2021-10-18 at 9 50 05 PM

Screen Shot 2021-10-18 at 9 49 30 PM

Here are those screenshots. Thanks for your help!

@JurajNyiri
Copy link
Owner

@drewid79 could you please click on the last playMedia request with type xhr and see what the response was?

image

It's expecting this. You are saying that it still plays successfully so I am wondering what did server actually respond with.

@drewid79
Copy link
Author

Screen Shot 2021-10-19 at 9 21 31 PM

Doesn't look like it responded with anything, unless I am looking in the wrong place.

@JurajNyiri
Copy link
Owner

JurajNyiri commented Oct 22, 2021

Just to double check -- do both requests playMedia have no response data? There is one preflight and XHR. preflight is expected to have no data returned, where as XHR should.

@JurajNyiri JurajNyiri changed the title Bug Bug: Failed to call service rest_command/pmha_playmedia. Service not found Oct 22, 2021
@JurajNyiri
Copy link
Owner

@drewid79 is this still an issue?

@drewid79
Copy link
Author

drewid79 commented Nov 23, 2021 via email

@JurajNyiri
Copy link
Owner

Closing due to inactivity.

@ThePolarCat
Copy link

I’m having the problem too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants