picasa gdata python客户端API googlephotoexception:413,“请求实体太大”

2024-10-02 20:40:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用picasagdata python client library将照片和视频上传到picasa。该代码适用于小照片和视频。但如果视频大于100 MB,则会出现以下错误:

photo = gd_client.InsertPhotoSimple( album_url, title, title, file, content_type=mime)
File "/usr/local/lib/python2.7/dist-packages/gdata/photos/service.py", line 470, in InsertPhotoSimple
content_type)
File "/usr/local/lib/python2.7/dist-packages/gdata/photos/service.py", line 428, in InsertPhoto
raise GooglePhotosException(e.args[0])

在gdata.photos.service.googlephotoexception:(413,'请求实体太大','视频文件大小超过104857600')

实际上,服务器拒绝大于100MB的文件。然而,this documentation表示文件大小限制实际上是1GB。在

那么,为什么我会得到这个错误呢?有人看到这个吗?在


Tags: client视频titlelibusrlocaltype错误