search

Home  >  Q&A  >  body text

七牛云存储 - 七牛android SDK上传 401

图片可以在后台看到,但是报401

 response: {"error":"{\"callback_url\":\"121.224.193.72:1234\/api\/ngportfolio\/qiniu_callback\/\",\"callback_bodyType\":\"application\/x-www-form-urlencoded\",\"callback_body\":\"fname=Draw_1467956407p0.jpg\\u0026hash=Fh9uxDCXVw21_wCMQfwDt_5x2Dda\\u0026qiniu_key=ngportfolios\/photos\/91ad5d02-e0ab-4921-8f73-a06e2690ff94\/Draw_1467956407p0.jpg\\u0026DATA=dXBsb2FkX2RhdGU9JnVwbG9hZF9kYXRlPTIwMTYtMDctMTErMDIlM0EyMSUzQTQzLjI5MjIyMSUyQjAwJTNBMDAmcWluaXVfa2V5PURyYXdfMTQ2Nzk1NjQwN3AwLmpwZyZuZ3BvcnRmb2xpb19pZD0z\",\"token\":\"\",\"err_code\":401,\"error\":\"Unauthorized\",\"hash\":\"Fh9uxDCXVw21_wCMQfwDt_5x2Dda\",\"key\":\"ngportfolios\/photos\/91ad5d02-e0ab-4921-8f73-a06e2690ff94\/Draw_1467956407p0.jpg\"}"}
高洛峰高洛峰2771 days ago762

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-17 17:27:52

    401 means authentication failure. First check whether the ak and sk generated token are correct.
    And whether the token has expired.

    reply
    0
  • Cancelreply