報錯內容:
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('一些內容')
