Code Monkey home page Code Monkey logo

speedcurve.py's People

Contributors

itsmemattchung avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

speedcurve.py's Issues

Raise exception if deployment in process

Unhandled exception when running add_deployment and there is already a deployment in progress

speedcurve/speedcurve.py:43: in add_deployment
    json = self._json(self._post(url, data=data, headers=headers), 200)
speedcurve/models.py:36: in _json
    if self._expected_response(response, status_code, 404):
speedcurve/models.py:46: in _expected_response
    raise exceptions.get_error_for(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = <Response [403]>

    def get_error_for(response):
        """Return initialized exception."""
        status_code = response.status_code
        error_class = error_classes.get(status_code)
>       return error_class(response)
E       TypeError: 'NoneType' object is not callable
{
    "http_interactions": [
        {
            "recorded_at": "2015-11-25T16:36:21",
            "request": {
                "body": {
                    "encoding": "utf-8",
                    "string": "note=speedcurve.py&site_id=1211&detail=additional+details+from+speedcurve.py+with+site+id"
                },
                "headers": {
                    "Accept": "*/*",
                    "Accept-Encoding": "gzip, deflate",
                    "Authorization": "Basic <BASIC_AUTH>",
                    "Connection": "keep-alive",
                    "Content-Length": "89",
                    "Content-Type": "application/x-www-form-urlencoded",
                    "User-Agent": "python-requests/2.8.1"
                },
                "method": "POST",
                "uri": "https://api.speedcurve.com/v1/deploy"
            },
            "response": {
                "body": {
                    "encoding": null,
                    "string": "{\"status\":\"failure\",\"message\":\"Deploy already in progress\",\"id\":12182}"
                },
                "headers": {
                    "Cache-Control": "no-cache",
                    "Connection": "Keep-Alive",
                    "Content-Type": "application/json",
                    "Date": "Wed, 25 Nov 2015 16:36:21 GMT",
                    "Keep-Alive": "timeout=5, max=100",
                    "Server": "Apache",
                    "Transfer-Encoding": "chunked"
                },
                "status": {
                    "code": 403,
                    "message": "Forbidden"
                },
                "url": "https://api.speedcurve.com/v1/deploy"
            }
        }
    ],
    "recorded_with": "betamax/0.5.1"
}

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.