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 client call function failed #51

Open
valley666 opened this issue Mar 7, 2019 · 4 comments
Open

oss client call function failed #51

valley666 opened this issue Mar 7, 2019 · 4 comments

Comments

@valley666
Copy link

valley666 commented Mar 7, 2019

参考oss_test.go文件,调用client的相关接口ListBuckets(req)或者HeadBucket(req),均返回失败。返回错误提示信息:"invalid character '<' looking for beginning of value",不太明白这个返回信息具体是什么意思.与此同时我测试了vm client函数调用,功能基本正常。

@oulinbao
Copy link

oulinbao commented Mar 7, 2019

返回了html,"<" 是第一个字符。你可以把resp.content全打出来看看。一般是后端出错时没有返回json导致的,明天有空帮你确认。

@valley666
Copy link
Author

valley666 commented Mar 8, 2019

好的,感谢,resp conetent:“< nil >”,没什么其它错误提示信息

@lidaobing
Copy link
Contributor

@LondfordCao 能给一下具体的代码么?

@zhusiyuan1
Copy link

当某一区域下不存在Bucket时,调用ListBuckets会出现该错误;近期会修复该问题。
推荐您使用 S3 API 来访问对象存储。S3 Go SDK:https://docs.jdcloud.com/cn/object-storage-service/sdk-go

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

4 participants