mpbzh / homebridge-plex

Plex plugin for homebridge: https://github.com/nfarina/homebridge
MIT License
58 stars 6 forks source link

Getting 401 error #20

Closed codyc1515 closed 10 months ago

codyc1515 commented 4 years ago

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"
}
iharosi commented 4 years ago

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?

codyc1515 commented 4 years ago

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.

iharosi commented 4 years ago

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

codyc1515 commented 10 months ago

Looks like this project is abandoned. Closing.