question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Windows 10 - Node v6.2.2 - NPM v3.9.6) Crash on get http://127.0.0.1:8080/

See original GitHub issue

Hello,

On fresh install.

My server crash on get http://127.0.0.1:8080/ So when I go on http://127.0.0.1:8080/api/status it works

Console output /

C:\Users\nicolas\Debans\api  (debans_gaming_api@0.0.1)
λ npm start

> debans_gaming_api@0.0.1 start C:\Users\nicolas\Debans\api
> actionhero start

2016-06-22T21:54:36.318Z - info: actionhero >> start
2016-06-22T21:54:36.754Z - notice: *** starting actionhero ***
2016-06-22T21:54:36.927Z - warning: running with fakeredis
2016-06-22T21:54:36.967Z - info: actionhero member 192.168.1.68 has joined the cluster
2016-06-22T21:54:37.397Z - notice: pid: 10116
2016-06-22T21:54:37.402Z - notice: server ID: 192.168.1.68
2016-06-22T21:54:37.444Z - notice: Starting server: `web` @ 0.0.0.0:8080
2016-06-22T21:54:37.490Z - notice: Starting server: `websocket`
2016-06-22T21:54:40.865Z - notice: environment: development
_http_outgoing.js:309
    throw new TypeError('The header content contains invalid characters');
    ^

TypeError: The header content contains invalid characters
    at storeHeader (_http_outgoing.js:309:11)
    at ServerResponse.OutgoingMessage._storeHeader (_http_outgoing.js:223:9)
    at ServerResponse.writeHead (_http_server.js:218:8)
    at server.sendWithCompression (C:\Users\nicolas\Debans\api\node_modules\actionhero\servers\web.js:194:38)
    at server.sendFile (C:\Users\nicolas\Debans\api\node_modules\actionhero\servers\web.js:148:14)
    at C:\Users\nicolas\Debans\api\node_modules\actionhero\initializers\genericServer.js:99:14
    at ReadStream.<anonymous> (C:\Users\nicolas\Debans\api\node_modules\actionhero\initializers\staticFile.js:73:15)
    at emitOne (events.js:96:13)
    at ReadStream.emit (events.js:188:7)
    at fs.js:1718:10

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\nicolas\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.6
npm ERR! code ELIFECYCLE
npm ERR! debans_gaming_api@0.0.1 start: `actionhero start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the debans_gaming_api@0.0.1 start script 'actionhero start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the debans_gaming_api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     actionhero start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs debans_gaming_api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls debans_gaming_api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\nicolas\Debans\api\npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
yinwzcommented, Jul 1, 2016

I’ll guess that your default locale involves reporting dates in a non-english / non-western way?

Yes, one fifth of population are Chinese

1reaction
yinwzcommented, Jun 30, 2016

node_modules\actionhero\servers\web.js line 110 if(lastModified){ connection.rawConnection.responseHeaders.push(['Last-Modified', new Date(lastModified)]); } modify to if(lastModified){ connection.rawConnection.responseHeaders.push(['Last-Modified', new Date(lastModified).toUTCString()]); }

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found