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

property 'filter' is undefinded #9

Open
emqMalte opened this issue Jan 30, 2017 · 3 comments
Open

property 'filter' is undefinded #9

emqMalte opened this issue Jan 30, 2017 · 3 comments

Comments

@emqMalte
Copy link

After Account linking with the PIN - and on all following requests - the lambda function fails:

TypeError: Cannot read property 'filter' of undefined
at /var/task/lib/plexutils.js:58:47
at _fulfilled (/var/task/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/var/task/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/var/task/node_modules/q/q.js:796:13)
at /var/task/node_modules/q/q.js:604:44
at runSingle (/var/task/node_modules/q/q.js:137:13)
at flush (/var/task/node_modules/q/q.js:125:13)
at nextTickCallbackWith0Args (node.js:415:9)
at process._tickDomainCallback (node.js:385:13)

@tdorsey
Copy link
Owner

tdorsey commented Jan 31, 2017

@EMQcarlos Thanks for the report. We know a bunch of stuff is broken since the code was basically abandoned awhile back. Obviously the "none of this works at all" bugs are first on the list, but afraid I don't really have a timeframe for you on a fix.

@scbrown
Copy link
Collaborator

scbrown commented Feb 1, 2017

@EMQcarlos thanks for letting us know. What version of Plex Media Server are you running? Also, it would help if you could uncomment line #10 in plexutils.js and show us what it logs.

@tdorsey
Copy link
Owner

tdorsey commented Feb 1, 2017

Did some digging into this, and if no clients are available, the MediaContainer returns zero elements. There's no error handling for this yet.

@EMQcarlos if you go to https://<YourServer>:32400/clients?X-Plex-Token=<YourToken> you should see an page with at least one entry in it. If not, make sure your client is visible at that URL before reconfiguring the app (Alexa, ask <Skill> to help) should reset you. Other things will likely still be broken, but this should move you forward.

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