-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
Hello. I have created an application from your example and the express server keeps crashing and restarting when a socket.on
event happens. This may be a false alarm and a bug in my application, but if anyone could help me decipher the error message, that would be great.
~/.pm2/pm2.log
2020-05-12T14:58:22: PM2 error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (7679)
at Object.writeFileSync (fs.js:1380:5)
at /usr/lib/node_modules/pm2/lib/God/ForkMode.js:264:12
at wrapper (/usr/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
at next (/usr/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)
at /usr/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
at WriteStream.<anonymous> (/usr/lib/node_modules/pm2/lib/Utility.js:186:13)
at WriteStream.emit (events.js:315:20)
at WriteStream.EventEmitter.emit (domain.js:547:15)
at internal/fs/streams.js:395:12
at FSReqCallback.oncomplete (fs.js:163:23)
My "chat-server.ts" : https://github.com/xinthose/angular_cpp_websocket/blob/master/server/src/portalogic-server.ts
Target: es2019
OS: Ubuntu 18.04 LTS
This may be a bug with express or socket-io with node v14? I do not have problems with node v13.
Metadata
Metadata
Assignees
Labels
No labels