Giter VIP home page Giter VIP logo

Comments (2)

yadayada avatar yadayada commented on July 29, 2024

That's an error handling an error. The format string is missing its first argument, namely the local file name. It should be

print('Uploading "%s" failed. Code: %s, msg: %s' % (short_nm, e.status_code, e.msg))

Additionally, your particular error response did not include a message from Amazon, so it's unclear what happened exactly. That's another thing I didn't foresee.

A quick fix is to alter the RequestError class in the file acd/common.py

class RequestError(Exception):
    def __init__(self, status_code, msg):
        self.status_code = status_code
        if msg:
            self.msg = msg
        else:
            self.msg = '{"message":"acd_cli: internal: no body received."}'

    def __str__(self):
        return str(self.status_code) + '\n' + self.msg

I had a couple of status 400 errors while trying to add files to folders that are in the trash. A 503 status usually indicates a programmer's fault somewhere, but 504 is new to me.

Edit: I forgot the parens.

from acd_cli.

yadayada avatar yadayada commented on July 29, 2024

Will be fixed in the next commit. Please open a new issue if the 504 errors persist.

from acd_cli.

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.