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

TypeError: stream.resume is not a function #472

Open
clochix opened this issue Oct 3, 2016 · 0 comments
Open

TypeError: stream.resume is not a function #472

clochix opened this issue Oct 3, 2016 · 0 comments
Labels

Comments

@clochix
Copy link
Contributor

clochix commented Oct 3, 2016

A user is reporting that he's unable to access some of its folders.
Having a look at the logs, there are a lot of error 500 when trying to get the thumbnails.

Here are the logs:

/usr/local/cozy/apps/files/build/server/controllers/files.js:488
     stream.resume();
            ^
TypeError: stream.resume is not a function
  at LaterStream.callback (/usr/local/cozy/apps/files/build/server/controllers/files.js:488:14)
  at LaterStream.module.exports.LaterStream._onStreamingDone (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:42:21)
  at LaterStream._onStreamingDone (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:4:61)
  at /usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:75:26
  at IncomingMessage.<anonymous> (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:19:41)
  at emitNone (events.js:72:20)
  at IncomingMessage.emit (events.js:166:7)
  at endReadableNT (_stream_readable.js:921:12)
  at nextTickCallbackWith2Args (node.js:442:9)

and

/usr/local/cozy/apps/files/build/server/controllers/files.js:521
     stream.resume();
            ^
TypeError: stream.resume is not a function
  at LaterStream.callback (/usr/local/cozy/apps/files/build/server/controllers/files.js:521:14)
  at LaterStream.module.exports.LaterStream._onStreamingDone (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:42:21)
  at LaterStream._onStreamingDone (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:4:61)
  at /usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:75:26
  at IncomingMessage.<anonymous> (/usr/local/cozy/apps/files/node_modules/cozydb/lib/utils/later_stream.js:19:41)
  at emitNone (events.js:72:20)
  at IncomingMessage.emit (events.js:166:7)
  at endReadableNT (_stream_readable.js:921:12)

stream is a LaterStream that has no resume method, only pipe and abort.
The error returned by getBinary is Error code 404 - {"error":"Not Found"}

@aenario any thought?

@clochix clochix added the bug label Oct 3, 2016
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

1 participant