Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node v14.2.0 Errors in server #57

Open
xinthose opened this issue May 12, 2020 · 0 comments
Open

Node v14.2.0 Errors in server #57

xinthose opened this issue May 12, 2020 · 0 comments

Comments

@xinthose
Copy link

xinthose commented May 12, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant