Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Report authentication errors #15

wants to merge 1 commit into from

3 participants


Tests don't seem to work or be maintained, so no test...


We normally don't take PR without issues so please feel free to re-open with tests.

If you have an issue with existing tests please feel free to submit an issue :)

Thanks for contributing!


The tests do not run, and the documentation and error messages are incorrect. The docs/message indicate a config file under 'data', but actually it looks for one under 'fixtures'. Even with that config file, the tests fail. That makes it difficult to test.

BTW the current NPM version is not working.


Sorry for the delay here! We've been waiting on all the issues / pull-requests for node-cloudfiles and node-cloudservers until we released pkgcloud: a new cross-provider unified IaaS library for node.js:

We added a deprecation notice for this library, but would you consider reimplementing your pull-request for the Rackspace provider in pkgcloud? It would make you a HERO in my book :+1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 17, 2012
  1. @crystalneth
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/cloudservers/core.js
6 lib/cloudservers/core.js
@@ -46,6 +46,12 @@ Client.prototype.setAuth = function (callback) {
request(authOptions, function (err, res, body) {
if (err) return callback(err);
+ var statusCode = res.statusCode.toString();
+ if (Object.keys(utils.failCodes).indexOf(statusCode) !== -1) {
+ if (callback) callback(new Error('Rackspace Error (' + statusCode + '): ' + utils.failCodes[statusCode]));
+ return;
+ }
self.authorized = true;
self.config.serverUrl = res.headers['x-server-management-url'];
self.config.storageUrl = res.headers['x-storage-url'];
Something went wrong with that request. Please try again.