title: TypeError: Object.keys called on non-object when uploading with knox
body: <p>I'm using knox (<a href="https://github.com/LearnBoost/knox" rel="nofollow">https://github.com/LearnBoost/knox</a>) to upload a file to Amazon S3.  I have just moved my node app to Amazon EC2 and have the following error when uploading with knox. I appear to have all of the libraries installed. The same code was OK on nodejitsu.  I'm quite new to node / JS so I'm not sure what this means.</p>
  
  <pre><code>/home/ec2-user/foo/node_modules/knox/lib/auth.js:208
  Object.keys(url.query).forEach(function (key) {
  ^
  TypeError: Object.keys called on non-object
  at Function.keys (native)
  at Object.exports.canonicalizeResource (/home/ec2-user/foo/node_modules/knox/lib/auth.js:208:10)
  at Client.request (/home/ec2-user/foo/node_modules/knox/lib/client.js:275:22)
  at Client.put (/home/ec2-user/foo/node_modules/knox/lib/client.js:326:15)
  at Client.putStream (/home/ec2-user/foo/node_modules/knox/lib/client.js:408:18)
  at /home/ec2-user/foo/node_modules/knox/lib/client.js:378:20
  at Object.oncomplete (fs.js:93:15)
  </code></pre>