Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oss_head_object()当object不存在时,没有一个明确的错误 #3

Closed
kilowu opened this issue Mar 7, 2016 · 3 comments
Closed
Assignees

Comments

@kilowu
Copy link
Contributor

kilowu commented Mar 7, 2016

调用oss_head_object(),当object不存在的时候,返回的status如下:

req_id: 56DCFA06DA14FDFF1BC21924
error_code: "UnkonwnError"
error_msg: ""

这里面有两个问题:

  1. 这个error code反映不了到底这个请求是因为什么原因失败
  2. error code有一处typo,应该是UnknownError
@qiyuewuyi
Copy link
Collaborator

1,head object的文件或者bucket不存在时,code为404,这时候,error_code和error_msg不清晰,这个是已知问题,需要对head object做特殊处理。后面版本会修复。
2,这个是有误,已经修复。
3,多谢

@kilowu
Copy link
Contributor Author

kilowu commented Jul 12, 2016

请问下这个问题已经修复了吗

@baiyubin
Copy link
Contributor

baiyubin commented Jul 19, 2016

head object错误时server端只返回http code,没有error code和error message。 已知问题。sdk这段无法修复。

@qq575654643 qq575654643 mentioned this issue Sep 22, 2017
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants