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

Error getting state #7

Closed
neoTUGA opened this issue Feb 1, 2018 · 3 comments
Closed

Error getting state #7

neoTUGA opened this issue Feb 1, 2018 · 3 comments

Comments

@neoTUGA
Copy link

neoTUGA commented Feb 1, 2018

Hello,
Just installed the plugin (great idea BTW) im getting following error:

[PlexTV] Getting current state...
[PlexTV] Error getting state (status code 1): TypeError: The header content contains invalid characters

My configs are as follows:

{
   "accessory": "Plex",
   "name": "PlexTV",
   "host": "192.168.0.1",
   "plex_token": "XXXXXXXXXXXX (redacted)",
   "filter": [
       {
           "user": "XXXXXXXXXXX (redacted)",
           "player": "TV UE55KU6000"
       }
   ]
}

Any ideas on were im going wrong? Thanks

@mpbzh
Copy link
Owner

mpbzh commented Feb 1, 2018

You are trying to access your Plex installation on 192.168.0.1.

In home networks this is very often the IP address of the router – Are you sure that this is the IP address of the computer on which your Plex server is running?

You can easily verify this by opening http://192.168.0.1:32400/status/sessions?X-Plex-Token= TOKEN (replacing TOKEN with your Plex token) in your web browser.

The response you get should look something like this:

<MediaContainer size="0"></MediaContainer>

Alternatively, if your Plex token is not valid, you should see something like "401 Unauthorized". You should then obtain a new Plex token.

Can you confirm that you get a valid result from the API?

@neoTUGA
Copy link
Author

neoTUGA commented Feb 1, 2018

Everything was correct my routers / switches are 250 and up. Don’t know what was going on, got a new token and updated the conf. No errors anymore.
Thanks anyway mate and great job. U have a fan here. ;)

@mpbzh
Copy link
Owner

mpbzh commented Feb 2, 2018

Glad to hear your problem was fixed! Feel free to reopen the issue if you run into issues again.

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

No branches or pull requests

2 participants