-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
UnhandledPromise Warning, SerialPort.list, no callback, return promise... #1977
Comments
If you're using serialport 8 as the error says "SerialPort.list no longer takes a callback and only returns a promise". You're providing a callback and not using the returned promise. Additionally You want to do;
Where did you find the example you're using? |
thank you, that works now :-) |
great! |
great, thank you its help full to me to solve same error |
2/6/2020, 21:23:56] Homebridge is running s:5:16 at new Promise () |
Hello, I'm new at JS, and Node, my goal is finally to provide an available Portlist to a combobox. But I'm already tumbling with below Code which does not work, and gives always follow error:
"UnhandledPromise...Warning:.... SerialPort.list no longer takes a callback.... only return a promise".
Unfortunately I have no idea, why this code should not work :-( ?
thanks
The text was updated successfully, but these errors were encountered: