Comments (6)
应该是路径权限问题,https://pan.baidu.com/union/doc/3ksg0s9ye
from pan.
这个问题是解决了,现在勉强能正常用,有几个地方不是很清楚;
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.
接口返回500还是“Poms key is not existing in DDBS”这个错吗
from pan.
不是,接口返回500是不会有正常的json数据的,所以body也无法解析成json
from pan.
也遇到了第3个问题,并发数改成1还是报错。
from pan.
也遇到了第3个问题,并发数改成1还是报错。
路径参数是/apps下的吗,不是的话没有权限上传,这个路径是需要申请接入的,一般为应用名称的拼音,官方文档:https://pan.baidu.com/union/doc/ol0rsap9s 申请入口: https://pan.baidu.com/union/apply?from=doc_header
如果不是这个问题的话,可以给下请求的参数和接口返回的信息,我这边排查下
from pan.
Related Issues (12)
- 上传测试时报"31045: user not exists"错误 HOT 2
- 下载100M+文件提示分片错误 HOT 3
- git tag版本号错误导致go无法获取最新的版本 HOT 1
- SuperFile2Upload fails with empty response on high concurrency
- 想问下在哪填写回调地址
- 下载文件403错误 HOT 2
- [optimize] 分片上传建议限制 goroutine 数量,上传大文件时会占用大量内存 HOT 1
- 请教一下百度网盘MD5的算法 HOT 3
- 遇到大文件时经常报错 downloadPart failed (unexpected) HOT 1
- error_msg":"app id is empty" HOT 1
- 作者你好,第一次使用百度网盘API,想咨询一下 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pan.