Git Product home page Git Product logo

Comments (5)

Joshua-Anderson avatar Joshua-Anderson commented on August 24, 2024

I believe that you get a sane error message for invalid auth, uploading a file that already exists, and trying to upload a when you're not on a tag. I'll take a look at checking oauth scopes before uploading.

from dpl.

monaka avatar monaka commented on August 24, 2024

Hmm, I retried it a few minutes ago. I got a sane error message as @Joshua-Anderson say.
But, as I reported on #125, I couldn't get a sane error message on some cases.
I believe it isn't caused by network issues because my other network services are healthy.
Depends on upload file size?

from dpl.

monaka avatar monaka commented on August 24, 2024

I checked master branch.
It becomes to detect badcredentials.

/Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/octokit-3.1.0/lib/octokit/response/raise_error.rb:16:in `on_complete': GET https://api.github.com/user: 401 - Bad credentials // See: https://developer.github.com/v3 (Octokit::Unauthorized)
    from /Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:9:in `block in call'
    from /Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:57:in `on_complete'

But there was no detailed messages on duplicated uploads.

Deploying application
/Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/openssl/buffering.rb:318:in `syswrite': Broken pipe (Errno::EPIPE)
    from /Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/openssl/buffering.rb:318:in `do_write'
    from /Users/monaka/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/openssl/buffering.rb:336:in `write'

I guess duplicated updates can be detected by calling HTTP HEAD method.

But it is caused by Faraday or something and/or OS dependent, I close this for now.
This issue is not critical to me.

from dpl.

Joshua-Anderson avatar Joshua-Anderson commented on August 24, 2024

I opened a PR #126 which should give a more logical warning when you don't have the proper scopes or try to overwrite a uploaded file.

from dpl.

monaka avatar monaka commented on August 24, 2024

@Joshua-Anderson , thanks for your improvements.
I'll try to execute dpl on Linux (instead of OSX) later. I want to tell you more information.

from dpl.

Related Issues (20)

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.