Move built-in HTTP pages to separeted file #360
Annotations
7 errors
add-http-pages/index.js#L7
Error: ENOENT: no such file or directory, open '/home/runner/work/server/server/hello.html'
❯ open node:internal/fs/promises:638:25
❯ Proxy.readFile node:internal/fs/promises:1238:14
❯ readHello add-http-pages/index.js:7:13
❯ add-http-pages/index.js:15:18
❯ BaseServer.processHttp base-server/index.js:774:7
❯ Server.<anonymous> base-server/index.js:614:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/server/server/hello.html' }
This error originated in "base-server/index.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "has hello page". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
server/index.test.ts#L81
Error: Snapshot `uses environment variables for config 1` mismatched
- Expected
+ Received
- "{"level":30,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","environment":"test","loguxServer":"0.0.0","nodeId":"server:FnXaqDxY","subprotocol":"1.0.0","supports":"1.x","listen":"ws://127.0.0.1:31337/","healthCheck":"http://127.0.0.1:31337/health","msg":"Logux server is listening"}
+ "{"level":60,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","err":{"type":"Object","message":"listen EADDRINUSE: address already in use 127.0.0.1:31337","stack":"","name":"Error"},"note":"Another Logux server or other app already running on this port. Probably you haven’t stopped server from other project or previous version of this server was not killed.\n\n$ su - root\n# netstat -nlp | grep 31337\nProto Local Address State PID/Program name\ntcp 0.0.0.0:31337 LISTEN `777`/node\n# sudo kill -9 `777`","msg":"Port `31337` already in use"}
{"level":30,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","msg":"Shutting down Logux server"}
"
❯ checkOut server/index.test.ts:81:15
|
server/index.test.ts#L81
Error: Snapshot `uses logger param 1` mismatched
- Expected
+ Received
- "{"level":30,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","environment":"test","loguxServer":"0.0.0","nodeId":"server:FnXaqDxY","subprotocol":"1.0.0","supports":"1.x","listen":"ws://127.0.0.1:31337/","healthCheck":"http://127.0.0.1:31337/health","msg":"Logux server is listening"}
+ "{"level":60,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","err":{"type":"Object","message":"listen EADDRINUSE: address already in use 127.0.0.1:31337","stack":"","name":"Error"},"note":"Another Logux server or other app already running on this port. Probably you haven’t stopped server from other project or previous version of this server was not killed.\n\n$ su - root\n# netstat -nlp | grep 31337\nProto Local Address State PID/Program name\ntcp 0.0.0.0:31337 LISTEN `777`/node\n# sudo kill -9 `777`","msg":"Port `31337` already in use"}
{"level":30,"time":"1970-01-01T00:00:00.000Z","pid":21384,"hostname":"localhost","name":"logux-server","msg":"Shutting down Logux server"}
"
❯ checkOut server/index.test.ts:81:15
|
server/index.test.ts#L81
Error: Snapshot `uses autoload modules 1` mismatched
- Expected
+ Received
"Root path module: 1.0.0
Child path module: 1.0.0
- INFO Logux server is listening at 1970-01-01 00:00:00
- PID: 21384
- Environment: test
- Logux server: 0.0.0
+ FATAL Port 31337 already in use at 1970-01-01 00:00:00
+ Another Logux server or other app already running on this port.
+ Probably you haven’t stopped server from other project or previous
+ version of this server was not killed.
- Node ID: server:FnXaqDxY
- Subprotocol: 1.0.0
- Supports: 1.x
- Health check: http://127.0.0.1:31337/health
- Listen: ws://127.0.0.1:31337/
+
+ $ su - root
+ # netstat -nlp | grep 31337
+ Proto Local Address State PID/Program name
+ tcp 0.0.0.0:31337 LISTEN 777/node
+ # sudo kill -9 777
INFO Shutting down Logux server at 1970-01-01 00:00:00
"
❯ checkOut server/index.test.ts:81:15
|
server/index.test.ts#L95
Error: Snapshot `uses autoload wrong export 1` mismatched
- Expected
+ Received
- " INFO Logux server is listening at 1970-01-01 00:00:00
- PID: 21384
- Environment: test
- Logux server: 0.0.0
- Node ID: server:FnXaqDxY
- Subprotocol: 1.0.0
- Supports: 1.x
- Health check: http://127.0.0.1:31337/health
- Listen: ws://127.0.0.1:31337/
-
- FATAL Server module should has default export with function that accepts a server at 1970-01-01 00:00:00
- error-modules/wrond-export/index.js default export is string
+ " FATAL Port 31337 already in use at 1970-01-01 00:00:00
+ Another Logux server or other app already running on this port.
+ Probably you haven’t stopped server from other project or previous
+ version of this server was not killed.
+
+ $ su - root
+ # netstat -nlp | grep 31337
+ Proto Local Address State PID/Program name
+ tcp 0.0.0.0:31337 LISTEN 777/node
+ # sudo kill -9 777
INFO Shutting down Logux server at 1970-01-01 00:00:00
"
❯ checkError server/index.test.ts:95:15
|
server/index.test.ts#L81
Error: Snapshot `has custom logger 1` mismatched
- Expected
+ Received
" INFO Hi from custom logger at 1970-01-01 00:00:00
Field: 1
- INFO Logux server is listening at 1970-01-01 00:00:00
- PID: 21384
- Environment: test
- Logux server: 0.0.0
+ FATAL Port 31337 already in use at 1970-01-01 00:00:00
+ Another Logux server or other app already running on this port.
+ Probably you haven’t stopped server from other project or previous
+ version of this server was not killed.
- Node ID: server:FnXaqDxY
- Subprotocol: 1.0.0
- Supports: 1.x
- Health check: http://127.0.0.1:31337/health
- Listen: ws://127.0.0.1:31337/
+
+ $ su - root
+ # netstat -nlp | grep 31337
+ Proto Local Address State PID/Program name
+ tcp 0.0.0.0:31337 LISTEN 777/node
+ # sudo kill -9 777
INFO Shutting down Logux server at 1970-01-01 00:00:00
"
❯ checkOut server/index.test.ts:81:15
|
|
The logs for this run have expired and are no longer available.
Loading