~samhh/bangin-server-node#4: 
Crash on invalid char

Jul 31 12:38:41 tentacool bangin-server-node[487046]: node:_http_outgoing:625
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     throw new ERR_INVALID_CHAR('header content', name);
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     ^
Jul 31 12:38:41 tentacool bangin-server-node[487046]: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Location"]
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at storeHeader (node:_http_outgoing:573:5)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at processHeader (node:_http_outgoing:568:3)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at ServerResponse._storeHeader (node:_http_outgoing:449:11)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at ServerResponse.writeHead (node:_http_server:417:8)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at ChildProcess.<anonymous> (/nix/store/j8n4yjp5i47ksjkhbqaxj0sjymfj2p99-bangin-server-node-0.2.>
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at ChildProcess.emit (node:events:513:28)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at maybeClose (node:internal/child_process:1091:16)
Jul 31 12:38:41 tentacool bangin-server-node[487046]:     at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
Jul 31 12:38:41 tentacool bangin-server-node[487046]:   code: 'ERR_INVALID_CHAR'
Jul 31 12:38:41 tentacool bangin-server-node[487046]: }
Jul 31 12:38:41 tentacool bangin-server-node[487046]: Node.js v18.16.1
Jul 31 12:38:41 tentacool systemd[1]: bangin-server-node.service: Main process exited, code=exited, status=1/FAILURE
Jul 31 12:38:41 tentacool systemd[1]: bangin-server-node.service: Failed with result 'exit-code'.

I don't remember which char it was but I think I was playing with Unicode or emojis for Mercury.

Status
REPORTED
Submitter
~samhh
Assigned to
No-one
Submitted
10 months ago
Updated
2 months ago
Labels
No labels applied.