[Error: write after end]
null
/Users/jsloyer/Downloads/node_modules/cf-nodejs-client/lib/utils/HttpUtils.js:107
if (response.statusCode === httpStatusAssert) {
^
TypeError: Cannot read property 'statusCode' of null
at Request.<anonymous> (/Users/jsloyer/Downloads/node_modules/cf-nodejs-client/lib/utils/HttpUtils.js:107:33)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.mixin._fireError (/Users/jsloyer/Downloads/node_modules/cf-nodejs-client/node_modules/restler/lib/restler.js:207:10)
at ClientRequest.<anonymous> (/Users/jsloyer/Downloads/node_modules/cf-nodejs-client/node_modules/restler/lib/restler.js:246:14)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at writeAfterEndNT (_http_outgoing.js:490:8)
at nextTickCallbackWith3Args (node.js:448:9)
at process._tickCallback (node.js:354:17)
When uploading an app with the following code I get an error with the callback for the response, it seems its ending early with
write after end
.Error stack: