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

Getting 401 error

Open codyc1515 opened this issue 5 years ago • 3 comments

Hey there

I am getting a "Error getting state (status code 401): null" error. I have input a valid token, so not sure why this would be.

https://github.com/mpbzh/homebridge-plex/blob/b9795fba6fd73bd485eccee230d5a0e80abfeb80/index.js#L60

The server is not local so may be that's why.

Config looks like:

{
"accessory": "Plex",
"name": "Plex",
"plex_token": "xxxxxx",
"host": "XXX-XXX-XXX-XXX.929ed44XXXXXXXXX10de7d1017f33.plex.direct"
}

codyc1515 avatar May 17 '20 23:05 codyc1515

Actually, I haven't tried with remote URL yet. And 401 means Unauthorized which is interesting. Are you sure your PMS is available all the time and there are no downtimes?

iharosi avatar May 24 '20 18:05 iharosi

Yeah. I double checked going to the API called manually and it was giving the same error as well I think. It may well be a Plex configuration issue.

codyc1515 avatar May 24 '20 20:05 codyc1515

Have you tried with IP address instead of Plex generated domain?

iharosi avatar May 24 '20 21:05 iharosi

Looks like this project is abandoned. Closing.

codyc1515 avatar Dec 11 '23 18:12 codyc1515