VultureZZ / nzbFamilyHub

19 stars 0 forks source link

No Newest movies showing #2

Open tooviral opened 10 years ago

tooviral commented 10 years ago

Running the devolpment branch.

Movie Library is 1000+ running Version0771aeac (20/7/2014 10:20:12)

VultureZZ commented 10 years ago

Working on a way to fix this, go ahead and pull latest and you can disable CP via config.js until I can figure out this new one. Basically the request is taking too long to parse 1000+ movies the nzbDrone requests are limited whereas the CP one is not which is why the issue exists.

VultureZZ commented 10 years ago

Okay, I have a "fix" go ahead and pull latest, it is just a modification to app.js it limits the results to the last 20 movies CP downloads. I believe this should eliminate the timeout error on load and/or the slow initial load time.

tooviral commented 10 years ago

Get this error now

undefined:0

^ SyntaxError: Unexpected end of input at Object.parse (native) at IncomingMessage. (C:\nzbFamilyHub\app.js:85:30) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:929:16 at process._tickCallback (node.js:419:13)

npm ERR! application-name@0.0.1 start: node app npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the application-name@0.0.1 start script. npm ERR! This is most likely a problem with the application-name package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node app npm ERR! You can get their info via: npm ERR! npm owner ls application-name npm ERR! There is likely additional logging output above. npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! cwd C:\nzbFamilyHub npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\nzbFamilyHub\npm-debug.log npm ERR! not ok code 0

If I disable Couch it loads fine.

VultureZZ commented 10 years ago

That is the error from the last issue, I need to see what data is coming back on line 85 of app.js change:

callback( null, JSON.parse( data ) );

to:

console.log('cp data', data); callback( null, data );

Then pastebin the output or post it in this ticket. It may include a list of your 20 most recently downloaded movies, if it doesn't I am interested to see what data is coming across. Either way it is unable to be parsed so we need to see what it is saying. Is your CP install running SSL by chance?

tooviral commented 10 years ago

Not getting an error now, even with cp enabled. Latest movies still dosen't show up. Maybe an issue with me running latest development branch. I did edit app.js

chuckpearce commented 10 years ago

In your console that you are running npm start or node app.js from, when you initially visit the site, do you see a line on the console that says "cp data" then a bunch of code? Or just a bunch of code scroll by? If so can you copy that to pastebin so I can take a look. I am trying to see what is coming back. It appears to either be timing out or sending back data in an unexpected way.

tooviral commented 10 years ago

No code comes up

Express server listening on port 3000 | cp data GET / 200 441.362 ms - 4561 GET /javascripts/client.js 304 12.365 ms - - GET /stylesheets/style.css 200 86.082 ms - 646 GET /images/plex.jpg 304 1.795 ms - - GET /images/nzbdrone.png 304 2.021 ms - - GET /images/couchpotato.png 304 2.829 ms - - 401 0.672 ms - - \ cp data GET / 200 308.034 ms - 4558 GET /stylesheets/style.css 304 10.313 ms - - GET /javascripts/client.js 304 1.406 ms - - GET /images/plex.jpg 304 0.664 ms - - GET /images/nzbdrone.png 304 5.223 ms - - GET /images/couchpotato.png 304 5.719 ms - -