Dwolla masspay:解析错误

时间:2013-06-13 04:31:20

标签: dwolla

发布到masspay API时收到错误:

curl -X POST -H "Content-Type: application/json" -d '{"oauth_token":"", "pin":1234, "email":"", "filedata":"", "test":"true"}' https://masspay.dwollalabs.com/api/create/

收到:

TypeError: Not a string or buffer
at Object.module.exports.encrypt (/app/lib/utils.js:11:30)
at module.exports (/app/controllers/api.js:209:23)
at callbacks (/app/node_modules/express/lib/router/index.js:272:11)
at param (/app/node_modules/express/lib/router/index.js:246:11)
at pass (/app/node_modules/express/lib/router/index.js:253:5)
at Router._dispatch (/app/node_modules/express/lib/router/index.js:280:5)
at Object.middleware [as handle] (/app/node_modules/express/lib/router/index.js:45:10)
at next (/app/node_modules/express/node_modules/connect/lib/http.js:204:15)
at IncomingMessage.exports.parse.application/json (/app/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:137:7)
at IncomingMessage.EventEmitter.emit (events.js:93:17)

API有问题,或者我发送的内容有问题吗?

1 个答案:

答案 0 :(得分:2)

哎呀,看起来这是由我们这边的一个错误引起的!道歉。我们刚刚推出修复程序 - 你能再试一次吗?

感谢您抓住这一点,我们对此表示赞赏。