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

This seems to crash sadly when updating album art I think #64

Closed
andyfitter opened this issue Jul 18, 2018 · 7 comments
Closed

This seems to crash sadly when updating album art I think #64

andyfitter opened this issue Jul 18, 2018 · 7 comments

Comments

@andyfitter
Copy link

Any ideas? Maybe the API signature has changed for the .get method in more recent versions of Node?

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:133:9)
at Object.exists (fs.js:201:3)
at ClientRequest.http.get (/home/pi/serverorig/server.js:58:19)
at Object.onceWrapper (events.js:273:13)
at ClientRequest.emit (events.js:182:13)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
at Socket.socketOnData (_http_client.js:432:20)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onread (net.js:638:20)

Thanks.

@jishi
Copy link
Owner

jishi commented Jul 18, 2018

Which version of node.js are you running?

@andyfitter
Copy link
Author

andyfitter commented Jul 18, 2018 via email

@jishi
Copy link
Owner

jishi commented Jul 18, 2018

nodejs is the debian maintained packaging of node.js. Both of them should work with this, but I haven't ran this web-controller in a while. Looking at the code, I don't understand that error, but also the line reference seems wrong (I'm assuming you checked out the files to /home/pi/serverorig?)

I would need to start it up at home to check it out.

@andyfitter
Copy link
Author

andyfitter commented Jul 18, 2018 via email

@andyfitter
Copy link
Author

andyfitter commented Jul 18, 2018 via email

@jishi
Copy link
Owner

jishi commented Jul 18, 2018

I don't see why it wouldn't run in 10.x as well, but makes a good point to make sure it does, thanks for reporting it.

@andyfitter
Copy link
Author

andyfitter commented Jul 18, 2018 via email

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

2 participants