#740·bypy

上传文件报错31064 file is not authorized(版本号1.8.9)

Author: dan-kurotoCreated Sep 13, 2025Updated Jul 5, 2026

命令:python3 -m bypy upload ./1844410596-夜永awa/录制-1844410596-20250912-185735-379-空洞还没结束!.flv records/1844410596-夜永awa/录制-1844410596-20250912-185735-379-空洞还没结束!.flv -v

日志:

Loading Hash Cache File '/root/.bypy/bypy.hashcache.json'...
Hash Cache File loaded.
<E> [11:49:46] Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file'
<E> [11:49:46] Function: _rapidupload_file_act
<E> [11:49:46] Website parameters: {'method': 'rapidupload', 'path': '/apps/bypy/records/1844410596-夜永awa/录制-1844410596-20250912-185735-379-空洞还没结束!.flv', 'content-length': 1071511318, 'content-md5': 'ec6c437cbj552f09db8cedd36526280f', 'slice-md5': '118537e335d43234d1bcd44d752157a9', 'content-crc32': '0x714c1bc9', 'ondup': 'overwrite'}
<E> [11:49:46] Full URL: https://pcs.baidu.com/rest/2.0/pcs/file?method=rapidupload&path=%2Fapps%2Fbypy%2Frecords%2F1844410596-%E5%A4%9C%E6%B0%B8awa%2F%E5%BD%95%E5%88%B6-1844410596-20250912-185735-379-%E7%A9%BA%E6%B4%9E%E8%BF%98%E6%B2%A1%E7%BB%93%E6%9D%9F%EF%BC%81.flv&content-length=1071511318&content-md5=ec6c437cbj552f09db8cedd36526280f&slice-md5=118537e335d43234d1bcd44d752157a9&content-crc32=0x714c1bc9&ondup=overwrite&access_token=121.989308bc0794cc0b2f71b7d049a092ab.YnBDxO14v_lhHpUnhLiPbnwvlimvYFnFXf0BAtw.nsntjg
<E> [11:49:46] HTTP Response Status Code: 400
<E> [11:49:46] Error JSON returned:{'error_code': 31023, 'error_msg': 'param error', 'request_id': 160994000106366843}
Error code: 31023
Error Description: param error
<E> [11:49:46] Website returned: {"error_code":31023,"error_msg":"param error","request_id":160994000106366843}
<E> [11:50:35] Error accessing 'https://c.pcs.baidu.com/rest/2.0/pcs/file'
<E> [11:50:35] Function: _upload_slice_act
<E> [11:50:35] Website parameters: {'method': 'upload', 'type': 'tmpfile'}
<E> [11:50:35] Full URL: https://c.pcs.baidu.com/rest/2.0/pcs/file?method=upload&type=tmpfile&access_token=121.989308bc0794cc0b2f71b7d049a092ab.YnBDxO14v_lhHpUnhLiPbnwvlimvYFnFXf0BAtw.nsntjg
<E> [11:50:35] HTTP Response Status Code: 403
<E> [11:50:35] Error JSON returned:{'error_code': 31064, 'error_msg': 'file is not authorized', 'request_id': 5925601639248815953}
Error code: 31064
Error Description: file is not authorized
<E> [11:50:35] Website returned: {"error_code":31064,"error_msg":"file is not authorized","request_id":5925601639248815953}
<E> [11:50:35] Slice MD5 mismatch, waiting 10 seconds before retrying...
<E> [11:50:45] Retrying #2 / 5