-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
undefined is not a function #676
Comments
You shouldn't need to. Have you been able to track this down anymore? |
No, I can't for the life of me figure out why this is happening. The exception is still thrown a lot and I'll try to make time to take another look at it. Any hints of what direction I should be looking? |
Hi, not sure if it's the same issue but I managed to reproduce this exception. I just created request and didn't call end(). I thought that request just shouldn't be issued but it causes exception instead. The point was that I was writing the test and I didn't want to send real HTTP request. I thought not calling end() should do the trick. |
Thanks, I'll take a look at that one ASAP. |
In our logging I've found an exception that I can't find the reason for. It's a classical helpful "undefined is not a function" and it seems to have something to do with Superagent:
We're making several superagent-calls to several different endpoints and I don't know at what URL or under what conditions this exception is thrown.
Looking at the code, it seems to have something to do with a missing callback:
https://github.com/visionmedia/superagent/blob/master/lib/node/index.js#L781
https://github.com/visionmedia/superagent/blob/master/lib/node/index.js#L736
We don't have any calls without a callback. Do we have to handle exceptions like timeouts in a different/manual manner maybe?
The text was updated successfully, but these errors were encountered: