-
Notifications
You must be signed in to change notification settings - Fork 45
UnhandledPromiseRejection #8
Comments
This seems to be an error related to playing the notification sound when a slot is found. Can you trying running the script from Command Prompt instead of Powershell just to see if that's the cause of the issue. |
i am running it on an ubuntu terminal |
Have you changed any code related to sound notification ? You could for the time being comment out the lines which play the notification sound and this should work. |
i haven't made any changes |
Are you still getting this error, I kept this issue open to see if any other users face this same issue. I have released new versions of the library so you could try running the latest versions and see if it fixes the issue you had. |
still getting the same error |
This error is in the latest version too. Stopping Pinger...
(node:16758) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch |
Can you clone the code and comment out these lines in the code
Now try running |
@abhinavdc I checked out node-wav-player. It is working fine on Ubuntu and Windows. Need to test it with macOS. If you think it is worth upgrading, then I can work out the changes. Let me know!! Usage: |
UnhandledPromiseRejectionWarning: Error: Command failed: powershell -c Add-Type -AssemblyName presentationCore; $player = New-Object system.windows.media.mediaplayer; $player.open('/home/sampath/.npm/_npx/1034/lib/node_modules/cowin-pinger/sounds/beep.mp3'); $player.Volume = 0.5; $player.Play(); Start-Sleep 1; Start-Sleep -s $player.NaturalDuration.TimeSpan.TotalSeconds;Exit;
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
The text was updated successfully, but these errors were encountered: