Git Product home page Git Product logo

node-cloudservers's People

Contributors

bmeck avatar c-spencer avatar coderarity avatar fotoverite avatar indexzero avatar marak avatar mmalecki avatar timmattison avatar tmpvar avatar tristanls avatar

Stargazers

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

Watchers

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

node-cloudservers's Issues

Possible to install node-cloudservers with cloud9ide?

I'm having numerous issues trying to setup a node.js development environment on Windows/Cygwin.

Instead of using Windows, is it a good idea to just use Cloud9ide? (http://www.cloud9ide.com)

They allow you to use npm right out of the box. So, I could just npm install cloudservers.... and continue from that point without the Windows setup headache.

If that works, I think it could really simplify the node hosting setup process for command line/node beginners like myself. Been trying for 2 months to get a good setup.

[Request]: option to perform cache-busting on API call

Ohai guys,

I need this option especially WRT to this call: cloudservers.getServers(true, function(){}). The default cache-control settings for Rackspace calls are 30 minutes - this hurts when I'm spawning servers via script and need IPs on completion... I don't want to wait.

Rackspace's official suggestion is to use dummy get parameters to do cache-busting: http://docs.rackspace.com/servers/api/v1.0/cs-devguide/content/Caching-d1e921.html

Rather than do cache busting on EVERY call, I suggest a flag/variable/option on a per-call basis - anything as long as it works.

I'd do a pull request but IDK if you want to change your request procedures based on what Eran talked about earlier this week. LMK.

Thanks,
Van

Documentation doesn't mention that you have to call setAuth

$subject

Took me a while to figure it out!

I was following the docs and the docs seem to show that all you have to do is create a client via cloudservers.createClient. Turns out that doesn't do the auth but just store the auth info in this.config.

createServer and getServers returns null

cloudservers @ 0.2.6
-- request @ 1.9.9

I am able to getFlavors and getImages, however when I call createServer or getServers the server and servers variables respectively are both null. I know createServer works because my server is created, but the callback receives a null variable.

the following code works:

client.getFlavors( function( err, flavors ) {
  // Dump the flavors we have just received
  console.log( util.inspect( flavors, true, null ) );
});

the following code returns servers = null:

client.getServers( true, function( servers ) {
  console.log( util.inspect( servers, true, null ) );
});

the following code creates a server but returns server = null:

client.createServer( options, function( server ) {
  console.log( util.inspect( server, true, null ) );
});

node v0.5.0-pre

npm ERR! Not compatible with your version of node/npm: [email protected]
npm ERR! Required: {"node":"0.4.x"}
npm ERR! Actual: {"npm":"1.0.6","node":"v0.5.0-pre"}

ENOTFOUND or ECONNREFUSED for all client functions

Just installed node-cloudservers via npm today. So far, I haven't been able to use any of the client functions to create a server on Rackspace. All return an err of either ECONNREFUSED (when I'm at work) or ENOTFOUND (when I'm at home). I'm using Mac OS Snow Leopard, and I found a similar issue reported a year ago related to the use of /etc/resolv.conf for dns lookup resolution. Other functions (npm, curl, etc.) appear to work fine. Is there something I'm missing?

Error: Failed to parse json, when installing cloudservers

After install node.js, I attempted to install cloudservers as per your instructions. I get an error printed below. It seems to be invalid json error.

~/node# npm install cloudservers
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info fetch http://registry.npmjs.org/cloudservers/-/cloudservers-0.2.0.tgz
npm info calculating sha1 /tmp/npm-1298154452380/1298154452380-0.9361977083608508/tmp.tgz
npm info shasum 12556ab1cb37d1becac19a3ef5360b5cbbecd668
npm ERR! couldn't read package.json in /tmp/npm-1298154452380/1298154452380-0.9361977083608508/contents/package
npm ERR! Error installing [email protected]
npm ERR! Error: Failed to parse json
npm ERR! Unexpected token ]
npm ERR! {
npm ERR! "name": "cloudservers",
npm ERR! "description": "A client implementation for Rackspace CloudServers in node.js",
npm ERR! "version": "0.2.0",
npm ERR! "author": "Charlie Robbins [email protected]",
npm ERR! "contributors": [
npm ERR! { "name": "Elijah Insua", "email": "[email protected]" },
npm ERR! { "name": "Matthew Bergman", "email": "[email protected]" },
npm ERR! ],
npm ERR! "repository": {
npm ERR! "type": "git",
npm ERR! "url": "http://github.com/nodejitsu/node-cloudservers.git"
npm ERR! },
npm ERR! "keywords": ["cloud computing", "api", "rackspace cloud", "cloudservers"],
npm ERR! "dependencies": {
npm ERR! "request": ">= 0.10.0",
npm ERR! "vows": ">= 0.5.2"
npm ERR! },
npm ERR! "main": "./lib/cloudservers",
npm ERR! "scripts": { "test": "vows test/-test.js --spec" },
npm ERR! "engines": { "node": ">= 0.3.0" }
npm ERR! }
npm ERR! at /usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/read-json.js:73:13
npm ERR! at P (/usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/read-json.js:62:40)
npm ERR! at cb (/usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/graceful-fs.js:31:9)
npm ERR! at [object Object]. (fs.js:86:5)
npm ERR! at [object Object].emit (events.js:39:17)
npm ERR! at afterRead (fs.js:843:12)
npm ERR! Report this *entire
log at http://github.com/isaacs/npm/issues
npm ERR! or email it to [email protected]
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok

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.