Closed
Description
> r = require('superagent').get('/')
> r.set({foo: 'bar'})
(seconds later)
> TypeError: fn is not a function
at Request.callback (...node_modules/superagent/lib/node/index.js:781:12)
at ClientRequest.<anonymous> (...node_modules/superagent/lib/node/index.js:736:10)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:166:7)
at Socket.socketErrorListener (_http_client.js:258:9)
at emitOne (events.js:77:13)
at Socket.emit (events.js:166:7)
at net.js:430:14
at doNTCallback0 (node.js:415:9)
at process._tickDomainCallback (node.js:385:13)
> double callback!
I haven't called .end() yet, so no callback is present to handle that error. But the request shouldn't be sent in the first place...
Activity