Giter Site home page Giter Site logo

Comments (6)

jsyzchen avatar jsyzchen commented on July 22, 2024

应该是路径权限问题,https://pan.baidu.com/union/doc/3ksg0s9ye
image

from pan.

EliseCaro avatar EliseCaro commented on July 22, 2024

这个问题是解决了,现在勉强能正常用,有几个地方不是很清楚;
1:一个是以上问题,上传过程我是通过直接不返回会员能用的32M分片,直接返回普通4M能解决此问题,可能跟文档说的第一个分片必须是4M有关,但奇怪的是通过会员32M分片有大多数文件能上传成功,偶尔个别文件的分片上传百度会返回500错误,反正目前是通过写死每个分片只有4M解决的;
2:第二个问提是关于你用的第三方库【php2go v0.9.4版本】【php2go.Md5File()】这个函数,获取大文件md5的时候将内存耗尽,我重写了这个函数,虽然他这个库已经更新至【v0.9.6】版本,不过我看依然不是太理想;我改成了使用【io.Copy】解决此问题;
3:第三个问题不知原因,在分片并发上传您的包默认并发数量10,但在我这里我改成并发数量2依然不行,最后只有改成1,同步上传才解决此问题,具体错误信息跟第一个问题相关,百度分片上传接口返回500,导致uploadResp结构体里面的PartSeq没有值,最终upload文件156行代码:strconv.Atoi(uploadResp.PartSeq)无法转换报错;

from pan.

jsyzchen avatar jsyzchen commented on July 22, 2024

接口返回500还是“Poms key is not existing in DDBS”这个错吗

from pan.

EliseCaro avatar EliseCaro commented on July 22, 2024

不是,接口返回500是不会有正常的json数据的,所以body也无法解析成json

from pan.

beshrek avatar beshrek commented on July 22, 2024

也遇到了第3个问题,并发数改成1还是报错。

from pan.

jsyzchen avatar jsyzchen commented on July 22, 2024

也遇到了第3个问题,并发数改成1还是报错。

路径参数是/apps下的吗,不是的话没有权限上传,这个路径是需要申请接入的,一般为应用名称的拼音,官方文档:https://pan.baidu.com/union/doc/ol0rsap9s 申请入口: https://pan.baidu.com/union/apply?from=doc_header

image

如果不是这个问题的话,可以给下请求的参数和接口返回的信息,我这边排查下

from pan.

Related Issues (12)

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.