restify客户端http post回调函数是否有字符长度的限制?

时间:2018-06-05 16:09:36

标签: restify

当我打电话给客户http帖子时,就像这样:

client.post( '/hdapi/User/sendSms',jssendSms, function(hdregistererr,hdregisterreq,hdregisterres,hdregisterobj)

失败并打印错误信息:

AssertionError [ERR_ASSERTION]: callback (func) is required
    at HttpClient.request (/root/node_modules/restify-clients/lib/HttpClient.js:716:12)
    at HttpClient.post (/root/node_modules/restify-clients/lib/HttpClient.js:667:18)
    at why (/root/myapp/app.js:354:17)

当我将这些代码更改为

client.post( '/hdapi/User/sendSms',jssendSms,
function(hdregerr,hdregreq,hdregres,hdregobj) {

它通过了,那么restify客户端http post回调函数是否有字符长度的限制?

0 个答案:

没有答案