node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

UnhandledPromiseRejectionWarning: Error: Can't cut unsupported JSON (no matching closing bracket found)

Open JamesBondee opened this issue 2 years ago • 1 comments

Everything worked well, but today i get this error: at Object.exports.cutAfterJS (/app/node_modules/ytdl-core/lib/utils.js:139:9) : at extractNCode (/app/node_modules/ytdl-core/lib/sig.js:65:59) : at Object.exports.extractFunctions (/app/node_modules/ytdl-core/lib/sig.js:71:3) : at /app/node_modules/ytdl-core/lib/sig.js:18:29 : at runMicrotasks () : at processTicksAndRejections (internal/process/task_queues.js:97:5) : (node:4) 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: 2)

JamesBondee avatar Sep 20 '22 14:09 JamesBondee

Experienced the same issue

igor-mytropan avatar Sep 21 '22 07:09 igor-mytropan

I saw this issue for "ytdl-core": "4.11.1" But after updating to "ytdl-core": "4.11.2" I don't see it anymore

alex-shestmincev avatar Sep 22 '22 13:09 alex-shestmincev