Oceanity / ots-plex-overlay

Part of OceaniTS, this is a browser-based overlay designed to be used with OBS that will show whatever media is currently playing on your Plex server
MIT License
4 stars 1 forks source link

crashes after starting #1

Open shersch opened 2 years ago

shersch commented 2 years ago

i wouldn't even classify myself as a beginner when it comes to javascript, but i'd like to use this neat little tool. the setup instructions aren't very clear on what i need to do with the repository, but the best i could do landed me with the below error when i start it up. i'm not sure i put any files or code in the right places or anything, so any instruction would be greatly appreciated!

[2022-02-18 13:43:26] [OTS Plex Overlay] Plex Covers directory does not exist, creating... [2022-02-18 13:43:26] [OTS Plex Overlay] Existing server not provided, started local Express server at http://localhost:3032/plex-overlay/ [2022-02-18 13:43:43] [OTS Plex Overlay] Client Connected, current clients: 1 /Users/redacted/Desktop/ots-plex-overlay/node_modules/ots-plex-overlay/lib/PlexReader.js:136 throw Error(Error ${statusCode}: ${body.toString("utf8")}`); ^

TypeError: Cannot read properties of undefined (reading 'toString') at /Users/redacted/Desktop/ots-plex-overlay/node_modules/ots-plex-overlay/lib/PlexReader.js:136:58 at processTicksAndRejections (node:internal/process/task_queues:96:5)`

Oceanity commented 2 years ago

Thanks for the heads up! That error message is ironically also suffering from an error, so I've fixed that first and foremost and you can get the latest version by running the following in your project folder:

npm i ots-plex-overlay@latest

If you grab the latest and run it again it should have a more helpful message, but in the mean time, my best guess is that it's either your hostname/port or token being invalid, could you post what you have to initialize the overlay (be sure to replace the actual token with x's or *'s for security, I just need to see how it's stored!)

Also, is the Plex server you are using a local server or on a different machine?