首页 > 其他 > 详细

报错The "chunk" argument must be one of type string or Buffer. Received type object

时间:2019-11-02 12:24:29      阅读:2017      评论:0      收藏:0      [点我收藏+]

报错内容:

TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be one of type string or Buffer. Received type object
at ServerResponse.end (_http_outgoing.js:690:13)

原因:

response.end()方法接收的参数类型只能是字符串或Buffer,

传入的是object

解决:

技术分享图片

 

 找到代码出错行,重写end方法,如:response.end(‘一些内容‘)

 

报错The "chunk" argument must be one of type string or Buffer. Received type object

原文:https://www.cnblogs.com/caimuguodexiaohongmao/p/11781009.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!