上传接口并发时很多请求总是超时或者400 #1260
Unanswered
CNXiaozhiy
asked this question in
Q&A
Replies: 1 comment 4 replies
-
https://socialsisteryi.github.io/bilibili-API-collect/docs/creativecenter/upload.html#上传接口 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
上传接口并发时很多请求总是超时,这意味着并发数为10的时候会导致等待10 * 60s = 10m,导致上传速度急速下降。3小时的视频可以上传3小时(这不应该出现在已经使用了并发上传的情况下)
我不知道为什么哔哩哔哩会直接不响应我的put请求,导致程序一直等待,直到超时后重试。
甚至重试后仍然会超时,然后程序又会继续递归重试
代码太长,不好一并展示,是使用的pLimit和axios库实现的并发上传,并发数为10。
关键代码:
求解!
Beta Was this translation helpful? Give feedback.
All reactions