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

Error: cb is not a function #16

Open
Blagus opened this issue Feb 15, 2016 · 0 comments
Open

Error: cb is not a function #16

Blagus opened this issue Feb 15, 2016 · 0 comments

Comments

@Blagus
Copy link

Blagus commented Feb 15, 2016

When working on TFTP provisioning with an IP phone, combined with HTTP proxy from examples, I started getting following error: "Error: cb is not a function".
It was being sent from "error" event ( req.on("error"...); ).
The error was exclusive to the phone, transfer to another PC/server worked fine.

I solved the error by changing lib/protocol/writer.js line 251 from
this._cb = null;
to
this._cb = function() { return false; };

This seems to work fine in my case, but is there a better solution?
How do I find out what's actually causing this error to show up only when sending files to the phone?

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

1 participant