Skip to content

ytdlp 音源调用时顯示 Promise.any 錯誤 #324

Answered by pan93412
EdisonJwa asked this question in Q&A
Discussion options

You must be logged in to vote

报错代码如下(不是网络问题,手动调用时可以正常返回数据)

ERROR: (hook) Promise.any is not a function
    TypeError: Promise.any is not a function
        at match (/root/UnblockNeteaseMusic-fork/src/provider/match.js:64:34)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async Promise.all (index 0)
INFO: (spawn) running yt-dlp -f 140 --dump-json ytsearch1:하나뿐인 사람 - K.Will
(node:3338) UnhandledPromiseRejectionWarning: undefined
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3338) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pan93412
Comment options

You must be logged in to vote
1 reply
@pan93412
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #323 on November 14, 2021 01:49.