Giter VIP home page Giter VIP logo

cloudfoundry-client's People

Contributors

frodenas avatar krobertson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cloudfoundry-client's Issues

cant parse response into json

Hi,
my name is Keagan Mendoza,
I'm from Intel Corporation, and I am trying to use cloudfoundry and the cloudfoundry console.
Sometimes when I do a vmc push, or I deploy and app from the console, when I start the app, I get this error message on the console, or the command line, but still my app starts in good shape. Do you know why this is, or a way I could ignore this error message?

Thanks,
Keagan Mendoza

Problem implementing the update_app method.

Hi, I'm trying to do a method for stopping instances through cloudfoundry-client, my code looks like this:

require 'cloudfoundry'

class BaseCloudFoundry < CloudFoundry::Client

def stop_app(appname)
app = app_info(appname)
app[:state] = "STOPPED"
update_app(appname,app)
end

end

When I call the method I have this error:

  1. Error:
    test_command(Test2):
    TypeError: wrong argument type JSON::Pure::Generator::State (expected Data)
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:301:in to_json' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:301:inblock in json_transform'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:294:in each' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:294:injson_transform'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:276:in to_json' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/pure/generator.rb:246:ingenerate'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/common.rb:216:in generate' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/json-1.6.1/lib/json/common.rb:345:indump'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:27:in encode' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:21:inblock in call'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:33:in match_content_type' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/faraday_middleware-0.8.8/lib/faraday_middleware/request/encode_json.rb:20:incall'
    /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/request/url_encoded.rb:14:in call' /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/request/multipart.rb:13:incall'
    /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/connection.rb:226:in run_request' /home/user/.rvm/gems/ruby-1.9.2-p320@global/gems/faraday-0.8.1/lib/faraday/connection.rb:99:input'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/request.rb:81:in request' /home/user/.rvm/gems/ruby-1.9.2-p320/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/request.rb:32:input'
    /home/user/.rvm/gems/ruby-1.9.2-p320/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/apps.rb:118:in update_app' /home/user/fakepath/lib/BaseCloudFoundry.rb:14:instop_app'
    /home/user/fakepath/test/unit/Test.rb:56:in `test_command'

What can be the problem? Thanks.

using cloudfoundry-client in my rails app

when I use the cloudfoundry-client in my rails app, step 1, gem install cloudfoundry-client,step 2, modify the Gemfile of app, add line " gem 'cloudfoundry-client ' " ; step 3, bundle install . they all works fine.

and then, start the webrick server, I got the error:

/var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:6:in <module:Response>': uninitialized constan t CloudFoundry::Client::Response::Faraday (NameError) from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:4:inclass:Client'
from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:2:in <module:CloudFoundry>' from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client/response.rb:1:in<top (required)>'
from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client.rb:5:in require' from /var/lib/gems/1.9.1/gems/cloudfoundry-client-0.3.0/lib/cloudfoundry/client.rb:5:in<top (required)>'

Can't download files from github

When i create an app , i want to upload app's source code by using gitlab, but i find that if i crate an app this way, the ajax request will down after 30 seconds. If the app's source code is small enough, like a "hello world" program, this process will be complete with in 30 seconds, the issue above will not occur. I checked the source code which makes me confused. In the utils.rb, there is a method called git_clone, in this method ,we use "EM.system(cmd) "(cmd = "#{git_binary} --git-dir=#{repodir} clone --quiet --branch=#{gitbranch} #{gitrepo} #{repodir}") to download app's files from github.com. but i don't understand the code "git_clone_result = Fiber.yield" ,and this line of code will occur the issue above.

Problem creating app

Hi, I'm trying to create an application through the "create_app" method but I'm having this error:

CloudFoundry::Client::Exception::BadRequest (Error 308: Invalid framework description: 'NONE'):

The manifest I'm using is created from a manifest.yml generated through VMC and converted into a hash using YAML.to_hash, this is the hash I'm using:

{:name => 'name', :framework => {:name => 'sinatra', :info => {:mem => '128M', :description => 'Sinatra Application' , :exec => {:url => 'name.pruebas.cloudfoundry.me', :mem => '128M', :instances => '1'}}}}

It's a problem on my hash or in the client?

Thanks, greetings

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.