又拍云分片上传初始化上传总是失败

policy-json:"{"expiration":1440593568,"file_blocks":5,"file_hash":"23727357ece4d36c19c3477d7a3c0a9b","file_size":4221642,"path":"23727357ece4d36c19c3477d7a3c0a9b.zip"}
policy-base64:eyJleHBpcmF0aW9uIjoxNDQwNTkzNTY4LCJmaWxlX2Jsb2NrcyI6NSwiZmlsZV9oYXNoIjoiMjM3MjczNTdlY2U0ZDM2YzE5YzM0NzdkN2EzYzBhOWIiLCJmaWxlX3NpemUiOjQyMjE2NDIsInBhdGgiOiIyMzcyNzM1N2VjZTRkMzZjMTljMzQ3N2Q3YTNjMGE5Yi56aXAifQ==

请求数据:
POST /ncmemfile/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 258
User-Agent: HttpUploader7
Host: m0.api.upyun.com
DNT: 1
Connection: Keep-Alive
Cache-Control: no-cache
 
policy=eyJleHBpcmF0aW9uIjoxNDQwNTkzNTY4LCJmaWxlX2Jsb2NrcyI6NSwiZmlsZV9oYXNoIjoiMjM3MjczNTdlY2U0ZDM2YzE5YzM0NzdkN2EzYzBhOWIiLCJmaWxlX3NpemUiOjQyMjE2NDIsInBhdGgiOiIyMzcyNzM1N2VjZTRkMzZjMTljMzQ3N2Q3YTNjMGE5Yi56aXAifQ==&signature=f47728c28b842409d95706ce01e822e5

返回值:
HTTP/1.1 401 Unauthorized
Server: vivi/0.4
Content-Type: application/json; charset=utf-8
Connection: keep-alive
X-Request-Id: 8e4c0cd78a2259b3a9db72d683c114b6
Content-Length: 45
X-Powered-By: Crocodile/v0.1.7+15w30b
Access-Control-Allow-Origin: *
Date: Wed, 26 Aug 2015 03:51:51 GMT
Access-Control-Allow-Methods: GET,HEAD,PUT,POST,DELETE
X-Vivi-Streaming: on
X-Request-Path: cun-ha-cgo-198
 
{"error_code":40101,"message":"Auth failed."}
阅读 3.9k
3 个回答

401错误,你看看是不是你配置的key有问题

已解决,是path的问题。path没写正确。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
logo
又拍云问答
子站问答
访问
宣传栏