Git Product home page Git Product logo

cf-service-broker-python's People

Contributors

dwatrous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cf-service-broker-python's Issues

Service Broker API version check fails for 2.10

This code in catalog() no longer works now that the service broker API is at 2.10 because float("2.10") evaluates to 2.1 which is < 2.3.

if not api_version or float(api_version) < X_BROKER_API_VERSION:
bottle.abort(409, "Missing or incompatible %s. Expecting version %0.1f or later" % (X_BROKER_API_VERSION_NAME, X_BROKER_API_VERSION))

Server error, status code: 502, error code: 10001

Hi!
I deploy the cf-echo-service and cf-service-broker-python follow the website http://software.danielwatrous.com/managed-services-in-cloudfoundry/,

But at the step "Manage Services" , it failed.

Creating service instance test-echo-service in org DevBox / space test0 as admin...
FAILED
Server error, status code: 502, error code: 10001, message: The service broker returned an invalid response for the request to http://service-broker.172.19.1.145.xip.io/v2/service_instances/a41228b3-52bf-49bc-a5cc-6bfc0a8fc6db?accepts_incomplete=true. Status Code: 500 Internal Server Error, Body: 
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html>
        <head>
            <title>Error: 500 Internal Server Error</title>
            <style type="text/css">
              html {background-color: #eee; font-family: sans;}
              body {background-color: #fff; border: 1px solid #ddd;
                    padding: 15px; margin: 15px;}
              pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
            </style>
        </head>
        <body>
            <h1>Error: 500 Internal Server Error</h1>
            <p>Sorry, the requested URL <tt>&#039;http://service-broker.172.19.1.145.xip.io/v2/service_instances/a41228b3-52bf-49bc-a5cc-6bfc0a8fc6db?accepts_incomplete=true&#039;</tt>
               caused an error:</p>
            <pre>Internal Server Error</pre>
              <h2>Exception:</h2>
              <pre>ConnectionError(ProtocolError(&#039;Connection aborted.&#039;, error(111, &#039;Connection refused&#039;)),)</pre>
              <h2>Traceback:</h2>
              <pre>Traceback (most recent call last):
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/bottle.py&quot;, line 862, in _handle
    return route.call(**args)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/bottle.py&quot;, line 1732, in wrapper
    rv = callback(*a, **ka)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/bottle.py&quot;, line 2680, in wrapper
    return func(*a, **ka)
  File &quot;service-broker.py&quot;, line 101, in provision
    provision_result = requests.put(bottle.template(service_instance, instance_id=instance_id))
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/requests/api.py&quot;, line 122, in put
    return request(&#039;put&#039;, url, data=data, **kwargs)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/requests/api.py&quot;, line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/requests/sessions.py&quot;, line 465, in request
    resp = self.send(prep, **send_kwargs)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/requests/sessions.py&quot;, line 573, in send
    r = adapter.send(request, **kwargs)
  File &quot;/app/.heroku/python/lib/python2.7/site-packages/requests/adapters.py&quot;, line 415, in send
    raise ConnectionError(err, request=request)
ConnectionError: (&#039;Connection aborted.&#039;, error(111, &#039;Connection refused&#039;))
</pre>
        </body>
    </html>

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.