Tag: amazon simpledb

Node.js + Express + simpledb; “TypeError:尝试列出域时,无法读取属性”错误的null“

我正在尝试使用Node.js / Express运行的Amazon SimpleDB进行一个非常简单的testing。 这是我正在使用的代码(当然,AWS密钥/秘密消毒): var express = require('express'); var simpledb = require('simpledb'); var app = express.createServer(); var sdb = new simpledb.SimpleDB( {keyed:'MYKEY', secret:'MYSECRET'}, simpledb.debuglogger); app.get('/', function(req, res) { console.log("about to list domains…"); sdb.listDomains(function(error, result, meta) { console.log("listing domains, I think?"); }); }); app.listen(8888); 这是我得到的错误: DEBUG: simpledb: 2012-04-06T01:34:24.856Z create {"keyid":"MYKEY","secret":"MYSECRET","secure":false,"consistent":true,"test":false,"maxtry":null,"expbase":null,"delaymin":null,"delayscale":null,"randomdelay":null} {"secure":false,"host":"sdb.amazonaws.com","path":"/","version":"2009-04-15","port":80} about to list domains… […]