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

Unable to write messages #1

Open
genaro-picazo opened this issue Apr 19, 2018 · 1 comment · May be fixed by #2
Open

Unable to write messages #1

genaro-picazo opened this issue Apr 19, 2018 · 1 comment · May be fixed by #2

Comments

@genaro-picazo
Copy link

genaro-picazo commented Apr 19, 2018

Whenever I connect to a COM port and try to send data, I always get back the following error:

First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.

Doing a little bit of debugging, it seems like the api webserver is receiving an empty object as the req.body, which is assigned to the buffer that we are trying to write to the serialport. The error makes sense, and I believe the issue is in remote-serial-port-client\lib\RemoteSerialPort.js, however, before spending time trying to fix it, I wanted to post this in case it is a known and possibly fixed issue.

Btw, this is via the provided web interface in the remote-serial-port-server project.

@gupadhyaya
Copy link

@gpicazo Changing the body-parser to 1.18.3 version fixed the problem for me.

nchristensen added a commit to nchristensen/remote-serial-port-server that referenced this issue May 30, 2018
Bump up body-parser version to resolve writing error. Fixes papnkukn#1.
@nchristensen nchristensen linked a pull request May 30, 2018 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants