GithubHelp home page GithubHelp logo

cloudapp-cli-old's People

Contributors

bonifaido avatar

Watchers

 avatar  avatar  avatar

cloudapp-cli-old's Issues

error checking

Currently everything failing is a 'bug' but might be expected

traceback when receiving 413

Since it is a valid API return, it should be catched and printed to the user in a more friendly way.

$ cloudapp upload ~/chaosradio_express_180_passivhaeuser.mp3 
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:191:in `write': Broken pipe (Errno::EPIPE)
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:191:in `write0'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:167:in `block in write'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:182:in `writing'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:166:in `write'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1739:in `send_request_with_body'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1724:in `exec'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1189:in `transport_request'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1177:in `request'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1170:in `block in request'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:627:in `start'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1168:in `request'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/httparty-0.8.0/lib/httparty/request.rb:73:in `perform'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/httparty-0.8.0/lib/httparty.rb:391:in `perform_request'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/httparty-0.8.0/lib/httparty.rb:359:in `post'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/drop.rb:108:in `create'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/client.rb:123:in `upload'
    from /Users/ich/bin/cloudapp:346:in `<main>'

Insert own user-agent

this would improve filtered listing by source when using multiple different clients all relying on Ruby cloudapp_api

Set MIME type on upload

Check whether cli sets correct and more specific than content-type as octet-stream on uploading archives, pictures or videos.

support alternate hosts

Am besten auch Ports akzeptieren á la localhost:1234, das erleichtert mein Leben ungemein ;)

crash when uploading a really large file (5,1 gig)

I even not receive a 413, it immediately crashes...

$ cloudapp upload ~/Downloads/in-pjt720p.mkv 
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/multipart.rb:41:in `read': Invalid argument - /Users/ich/Downloads/in-pjt720p.mkv (Errno::EINVAL)
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/multipart.rb:41:in `create_file_field'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/multipart.rb:19:in `initialize'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/drop.rb:108:in `new'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/drop.rb:108:in `create'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cloudapp_api-0.3.1/lib/cloudapp/client.rb:123:in `upload'
    from /Users/ich/bin/cloudapp:346:in `<main>'

strip file names in download

maybe use whitelisting instead of blacklisting: return re.sub('[\W]+', '-', title, re.U).lower().strip('-') or some escape-algorithm

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.