npm test #2799
Unanswered
jbridgenet
asked this question in
Q&A
npm test
#2799
Replies: 1 comment
-
As the error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
npm test
Feathers application tests
1) "before all" hook for "starts and shows the index page"
2) "after all" hook for "starts and shows the index page"
authentication
✔ registered the authentication service
local strategy
✔ authenticates user and creates accessToken (86ms)
'users' service
✔ registered the service
3 passing (228ms)
2 failing
Feathers application tests
"before all" hook for "starts and shows the index page":
Uncaught Error: listen EADDRINUSE: address already in use :::3030
at Server.setupListenHandle [as _listen2] (node:net:1422:16)
at listenInCluster (node:net:1470:12)
at Server.listen (node:net:1558:7)
at Function.listen (node_modules/express/lib/application.js:635:24)
at Function.listen (node_modules/@feathersjs/express/lib/index.js:61:34)
at Function.newMethod (node_modules/uberproto/lib/proto.js:34:20)
at Function.listen (node_modules/@feathersjs/socketio/lib/index.js:39:25)
at Function.newMethod [as listen] (node_modules/uberproto/lib/proto.js:34:20)
at Context. (test/app.test.js:18:18)
at process.processImmediate (node:internal/timers:471:21)
Feathers application tests
"after all" hook for "starts and shows the index page":
Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
at new NodeError (node:internal/errors:388:5)
at Server.close (node:net:1726:12)
at Object.onceWrapper (node:events:651:28)
at Server.emit (node:events:549:35)
at emitCloseNT (node:net:1779:8)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:442:9)
The server code was generated by feathers_cli
the test user was created successfully in database
Also like to know what is the socket.io server version, ver 4.x?
I got errors when I try to direct connect using socket.io.client (version 2.x):
flutter: FINE: 2022-10-13 11:28:40.775339: socket_io_client:engine.Socket: socket receive: type "open", data "{"sid":"CVLUFJRB-PbOCOxLAAAV","upgrades":[],"pingInterval":25000,"pingTimeout":20000}"
2
flutter: FINE: 2022-10-13 11:28:40.777051: socket_io_client:engine.Socket: socket open
2
flutter: FINE: 2022-10-13 11:28:40.777664: socket_io_client:Manager: open
2
flutter: FINE: 2022-10-13 11:28:40.778054: socket_io_client:Manager: cleanup
2
flutter: FINE: 2022-10-13 11:28:40.780198: socket_io_client:Socket: transport is open - connecting
2
flutter: FINE: 2022-10-13 11:28:40.782008: socket_io_client:Manager: writing packet {type: 0, nsp: /}
2
flutter: FINE: 2022-10-13 11:28:40.783105: socket_io:parser.Encoder: encoding packet {type: 0, nsp: /}
2
flutter: FINE: 2022-10-13 11:28:40.783753: socket_io:parser.Encoder: encoded {type: 0, nsp: /} as 0
2
flutter: FINE: 2022-10-13 11:28:40.786024: socket_io_client:engine.Socket: flushing 1 packets in socket
2
flutter: FINE: 2022-10-13 11:28:40.797048: socket_io_client:engine.Socket: socket receive: type "message", data "0"
flutter: Connection error
flutter: It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)
Please help...
Beta Was this translation helpful? Give feedback.
All reactions