- 論壇徽章:
- 7
|
fastdfs的python客戶端是不是不能用了? 除了可以上傳,下載之外,其他的函數(shù)都報(bào)錯(cuò)。
list_one_group
list_all_groups
list_servers
提示ResponseError: [-] Error: Response size is mismatch, except: 210, actul: 210, 進(jìn)入了源碼看下,是這段報(bào)錯(cuò)
if recv_size % gi_fmt_size != 0:
errmsg = '[-] Error: Response size is mismatch, except: %d, actul: %d' \
% (th.pkg_len, recv_size)
get_meta_data則就直接報(bào):
DataError: [-] Error:2, No such file or directory
storage_client.py 475行:
if th.status != 0:
raise DataError('[-] Error:%d, %s' % (th.status, os.strerror(th.status)))
而是用down_to_file卻可以下載。 |
|