Giter VIP home page Giter VIP logo

Comments (10)

Yuuu8 avatar Yuuu8 commented on September 21, 2024

我之前用的版本是fastdfs5.11这套代码没问题,现在升级到6.11 就会出现这样的报错

from fastdfs.

senmaowang avatar senmaowang commented on September 21, 2024

这个是 fastdfs-clint-java 1.31版本的问题,回退回1.30或者更早版本就好了

from fastdfs.

happyfish100 avatar happyfish100 commented on September 21, 2024

server 端使用 V6.11,fastdfs-clint-java需要使用最新的 V1.31

from fastdfs.

Yuuu8 avatar Yuuu8 commented on September 21, 2024

服务器端使用V6.11,fastdfs-clint-java需要使用最新的V1.31

按照此修复了代码,已修复,谢谢

from fastdfs.

condywl avatar condywl commented on September 21, 2024

server 端使用 V6.11,fastdfs-clint-java需要使用最新的 V1.31

大佬,python的客户端 fdfs-client-py3==1.0.0 也报这个错误,求教如何解决。

from fastdfs.

happyfish100 avatar happyfish100 commented on September 21, 2024

为了支持IPv6,返回的IP地址长度由16增大到 46,C client API 和 Java client SDK均已更新。
需要把FDFS的python SDK升级一下。

from fastdfs.

condywl avatar condywl commented on September 21, 2024

为了支持IPv6,返回的IP地址长度由16增大到 46,C client API 和 Java client SDK均已更新。 需要把FDFS的python SDK升级一下。

还请大佬解答一下新sdk的包名。

from fastdfs.

waketzheng avatar waketzheng commented on September 21, 2024

@condywl Python可用这个fastdfs-client-python

Usage::

from fastdfs_client import FastdfsClient  # pip install fastdfs-client

tracker_conf_path = "./tracker.conf"  # tracker配置文件的地址
client = FastdfsClient(tracker_conf_path)

ret = client.upload_by_filename('kitty.jpg')  # 本地文件路径
print(ret)

from fastdfs.

happyfish100 avatar happyfish100 commented on September 21, 2024

FDFS 通信协议中涉及 IP 地址的地方,长度由之前的 16 改为 46 了。
请在 client SDK 中做相应修改即可。

from fastdfs.

waketzheng avatar waketzheng commented on September 21, 2024

FDFS 通信协议中涉及 IP 地址的地方,长度由之前的 16 改为 46 了。 请在 client SDK 中做相应修改即可。

感谢大神的耐心解答~

修改fdfs_client/fdfs_protol.py中的IP_ADDRESS_SIZE后报错就修复了,其他人如果也遇到这个报错,可以用下面的命令来升级Python版fdfs_client SDK,从而无需修改代码

pip install 'git+https://github.com/waketzheng/[email protected]#egg=fdfs-client'

from fastdfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.