TikTokWeb icon indicating copy to clipboard operation
TikTokWeb copied to clipboard

需要对/node_modules/axios/lib/adapters/http.js的promise加个catch

Open AndrewHann opened this issue 2 years ago • 6 comments

解析视频时报错 (node:11901) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403 at createError (/home/pi/TiktokWeb/web/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/pi/TiktokWeb/web/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/pi/TiktokWeb/web/node_modules/axios/lib/adapters/http.js:322:11) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) (node:11901) 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(). (rejection id: 4)

AndrewHann avatar Feb 21 '23 16:02 AndrewHann

一样的问题,请问老哥你解决了吗?

michael2221807 avatar Feb 21 '23 19:02 michael2221807

一样的问题,请问老哥你解决了吗?

解决方式我已经写在标题上了呀,直接对这个promise加个catch就可以了

AndrewHann avatar Feb 22 '23 08:02 AndrewHann

为什么会产生403?是cookie无效吗,我不少视频都无法解析

lazyou avatar Feb 27 '23 03:02 lazyou

我也会这样 多试几次就行了

AndrewHann avatar Feb 27 '23 15:02 AndrewHann

加上catch 也是解析不了 是不是失效了

18639522576 avatar Apr 01 '23 00:04 18639522576

使用新镜像即可

Johnserf-Seed avatar Sep 03 '23 16:09 Johnserf-Seed