Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Server crash: stream has no method setHeader #151

Closed
clochix opened this issue Jul 13, 2015 · 1 comment
Closed

Server crash: stream has no method setHeader #151

clochix opened this issue Jul 13, 2015 · 1 comment
Assignees
Labels

Comments

@clochix
Copy link
Contributor

clochix commented Jul 13, 2015

Data system of a user's instance keep crashing, here are the logs:

/usr/local/cozy/apps/data-system/build/server/controllers/attachments.js:86
        stream.setHeader('range', req.headers['range']);
               ^
TypeError: Object #<IncomingMessage> has no method 'setHeader'
    at /usr/local/cozy/apps/data-system/build/server/controllers/attachments.js:86:16
    at callback (/usr/local/cozy/apps/data-system/build/server/lib/downloader.js:47:7)
    at ClientRequest.<anonymous> (/usr/local/cozy/apps/data-system/build/server/lib/downloader.js:81:20)
    at ClientRequest.g (events.js:180:16)
    at ClientRequest.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:122:23)
    at Socket.socketOnData [as ondata] (http.js:1584:20)
    at TCP.onread (net.js:528:27)

@frankrousseau
Copy link
Contributor

Can you push the build and make a PR on the master branch?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants