This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
UnhandledPromiseRejectionWarming when opening start.bat #75
Labels
duplicate
This issue or pull request already exists
I got an error "(node:4196) UnhandledPromiseRejectionWarming: SyntaxError: Unexpected token < in JSON at position 0" and Discord does not showing "Playing VLC Media Player"
It happens when I opened the script start.bat
(node:4196) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at new VLCStatus (F:\Torrent\vlc-discord-rpc\node_modules\vlc.js\lib\src\http\classes\VLCStatus.js:13:27)
at F:\Torrent\vlc-discord-rpc\node_modules\vlc.js\lib\src\http\Requester.js:65:21
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:4196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 81)The text was updated successfully, but these errors were encountered: