_http_outgoing JS Error: The header content contains invalid characters

Source: Internet
Author: User

Http_outgoing JS Error: The header content contains invalid characters
[Thu, 07:48:50 GMT] "GET/" "mozilla/5.0 (IPhone; CPU iPhone os 8_0like Mac os X applewebkit/600.1.3 (khtml, like Gecko) version/8.0 mobile/12a4345d safari/600.1.4 "_http_o      utgoing.js:351 throw new TypeError (' The header content contains invalid characters '); ^typeerror:the header content contains invalid characters at ServerResponse.OutgoingMessage.setHeader (_http_outgoing. js:351:13) at Responsestream. (anonymous function)[As SetHeader] (c:\users\administrator\appdata\roaming\npm\node_modules\http-server\node_modules\union\lib\RESPONSE-STREAM.JS:88:34) at serve (c:\users\administrator\appdata\roaming\npm\node_modules\http-server\node_modules\ Ecstatic\lib\ecstatic.js:204:11) at C:\users\administrator \appdata \roaming\npm \node_modules\http-server\node_modules\ecstatic\lib\ecstatic.js:134:11 at Fsreqwrap.oncomplete (fs.js:82:15)             


Node startup project, encountered the above problem, search Baidu, see the reason is the low version of Http-server a bug,
The Package.json "Http-server": "^0.6.1", instead of "Http-server": "^0.9.0",
On the command line: NPM update http-server
Re: NPM start
OK, solve

_http_outgoing JS Error: The header content contains invalid characters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.