GithubHelp home page GithubHelp logo

skipper-qiniu's People

Contributors

loulin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

skipper-qiniu's Issues

Invalid non-string/buffer chunk

`> [email protected] test /Users/kamwing/Desktop/skipper-qiniu

node -e "require('skipper-adapter-tests')({mocha: { timeout: 360000 }, module: require('./'), bucket:process.env.BUCKET || 'skipper-adapter-tests', accessKey: process.env.ACCESSKEY, secretKey: process.env.SECRETKEY});"

when some big files start coming in, this adapter
1) should work properly with 2 simultaneous requests with decent-sized (1.5MB) files

after uploading a file using this adapter, Skipper
each file metadata object
field
file descriptor (fd)
type

under a bit of load, this adapter

this adapter

this adapter's impact on req.body ::

Ignoring :: req.file("foo"), when a file upload is sent to the "bar" field ::

req.file(...).pipe(...) ::

req.file(...).upload(...) ::

0 passing (375ms)
1 failing

  1. when some big files start coming in, this adapter should work properly with 2 simultaneous requests with decent-sized (1.5MB) files:
    Uncaught TypeError: Invalid non-string/buffer chunk
    at chunkInvalid (_stream_readable.js:399:10)
    at readableAddChunk (_stream_readable.js:144:12)
    at Readable.push (_stream_readable.js:130:10)
    at Object.put (/Users/kamwing/Desktop/skipper-qiniu/node_modules/qiniu/qiniu/io.js:58:6)
    at Writable.onFile (/Users/kamwing/Desktop/skipper-qiniu/index.js:65:16)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Writable.write (_stream_writable.js:220:11)
    at Transform.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)`

请问下这个问题可能是什么原因导致的吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.