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

Catch serial port connection error #344

Open
neelizalde opened this issue Sep 6, 2024 · 1 comment
Open

Catch serial port connection error #344

neelizalde opened this issue Sep 6, 2024 · 1 comment

Comments

@neelizalde
Copy link

I can`t catch the error emitted when is not connection with COM port. How can I do it?

Error:

triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: Opening COM4: File not found
Emitted 'error' event on SerialPort instance at:
    at SerialPort._error (C:\DEVOPS\01-08-2024-begitrack\BegiTrack\backend-electron\node_modules\@serialport\stream\dist\index.js:85:18)
    at C:\DEVOPS\01-08-2024-begitrack\BegiTrack\backend-electron\node_modules\@serialport\stream\dist\index.js:118:18
@stefanpoeter
Copy link
Member

Try adding DEBUG=* as an Environment Variable and see what it spits out.

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

2 participants