Code Monkey home page Code Monkey logo

bergcloud's People

Contributors

alfo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andyhunti

bergcloud's Issues

422 when calling .claim with a pre-used claimcode

Hi Alex,

Just been using the ruby wrapper. It's good!

I've noticed that I get a 422 error when I issue the following in an irb (ruby 1.9.3)

require 'bergcloud'
BERGCloud.api_token = 'MYAPITOKEN'
BERGCloud::Project.new('MYPROJECTID')

project.valid?
 => true 

project.claim('my-already-used-claim-code')
Something else went wrong
BERGCloud::Error::RequestError: Something else went wrong. Response code was: 422
    from /Users/andyh/.rvm/gems/ruby-1.9.3-head/gems/bergcloud-1.0.2/lib/bergcloud/client.rb:76:in `request'
    from /Users/andyh/.rvm/gems/ruby-1.9.3-head/gems/bergcloud-1.0.2/lib/bergcloud/client.rb:18:in `post'
    from /Users/andyh/.rvm/gems/ruby-1.9.3-head/gems/bergcloud-1.0.2/lib/bergcloud/project.rb:16:in `claim'
    from (irb):25
    from /Users/andyh/.rvm/rubies/ruby-1.9.3-head/bin/irb:12:in `<main>'

When using the claim tool in the Devcenter it reports that the claimcode has already been used as expected.

I saw you fixed 422s elsewhere, did this slip through? Is this an issue?

Andy

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.