抖音开放平台,上传视频到文件服务器,响应:413 Request Entity Too Large 的排查分析
1、抖音开放平台,上传视频到文件服务器,文件大小:2.10 GB。响应:413 Request Entity Too Large。如图1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <! DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> < html > < head > < title >413 Request Entity Too Large</ title > </ head > < body bgcolor = "white" > < h1 >413 Request Entity Too Large</ h1 > < P >The requested resource does not allow request data with the requested method or the amount of data provided in the request exceeds the capacity limit. < hr />Powered by Tengine </ body > </ html > |
2、查看文档,抖音开放平台 – Open Api – 视频管理 – 抖音 – 创建视频 – 上传视频:https://open.douyin.com/platform/doc/6848798087398295555 。视频文件要求:视频文件大小不超过128M,时长在15分钟以内。
3、抖音开放平台,上传视频到文件服务器,文件大小:136 MB。响应:502 Bad Gateway。如图2
4、抖音开放平台,上传视频到文件服务器,文件大小:117 MB。响应:200。上传成功。耗时:1 m 7.02 s。如图3
5、官方文档注意:超过50m的视频建议采用分片上传,可以降低网关超时造成的失败。超过128m的视频必须采用分片上传。视频总大小4GB以内。单个分片建议20MB,最小5MB。后续上传视频的实现逻辑:不论大小,皆分片上传视频,单个分片大小为 100 MB。
近期评论