Skip to content
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

Can't upload files #14

Closed
mortezaalizadeh opened this issue Jul 19, 2017 · 2 comments
Closed

Can't upload files #14

mortezaalizadeh opened this issue Jul 19, 2017 · 2 comments

Comments

@mortezaalizadeh
Copy link

Hey guys, I am currently evaluating Buddy to see whether I can move my app to Buddy Parse cloud. I started trying to create static resources and upload it using the CLI command, but I got the following error. Environment variables are all set properly. Do you have any idea what wrong is with my machine?

I am using node v8.0.0.

morteza@MORTEZA ~/projects/micro-business/smart-grocery-backend-buddy $ parse-on-buddy -c 2
Listing application versions...
Walking local public directory subtree...
Listing existing hash blobs...
Uploading 1 (of 1) public asset(s)...
Uploading cloud code...
Uploading name → hash mapping...
_stream_readable.js:545
switch (state.pipesCount) {
^

TypeError: Cannot read property 'pipesCount' of undefined
at module.exports.Readable.pipe (_stream_readable.js:545:16)
at module.exports.ZipArchiveOutputStream._smartStream (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:184:11)
at module.exports.ZipArchiveOutputStream._appendStream (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:96:20)
at module.exports.ArchiveOutputStream.entry (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
at module.exports.ZipStream.entry (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/zip-stream/index.js:157:49)
at Zip.append (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/archiver/lib/plugins/zip.js:53:15)
at Archiver._moduleAppend (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/archiver/lib/core.js:168:16)
at Archiver._onQueueTask (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/archiver/lib/core.js:366:8)
at /home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/async/dist/async.js:4069:9
at process (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/async/dist/async.js:2317:17)
at Immediate._onImmediate (/home/morteza/.nvm/versions/node/v8.0.0/lib/node_modules/parse-on-buddy/node_modules/async/dist/async.js:66:16)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)

@craigpatten
Copy link
Contributor

Hi @mortezaalizadeh. This looks like archiverjs/node-archiver#236 and is fixed with Node ≥ v8.1.0.

@mortezaalizadeh
Copy link
Author

Cheers man, upgraded to 8.1.4, it is all working now.

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

No branches or pull requests

2 participants