{"action":"opened","issue":{"url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/90","repository_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk","labels_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/90/comments","events_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/90/events","html_url":"https://github.com/aliyun/aliyun-oss-go-sdk/issues/90","id":307213430,"number":90,"title":"go run sample.go no such host exit status 255","user":{"login":"JohnTian","id":7224107,"avatar_url":"https://avatars1.githubusercontent.com/u/7224107?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTian","html_url":"https://github.com/JohnTian","followers_url":"https://api.github.com/users/JohnTian/followers","following_url":"https://api.github.com/users/JohnTian/following{/other_user}","gists_url":"https://api.github.com/users/JohnTian/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTian/subscriptions","organizations_url":"https://api.github.com/users/JohnTian/orgs","repos_url":"https://api.github.com/users/JohnTian/repos","events_url":"https://api.github.com/users/JohnTian/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T11:50:00Z","updated_at":"2018-03-21T11:50:00Z","closed_at":null,"author_association":"NONE","body":"Endpoint、AccessKeyId、AccessKeySecret、BucketName已经设置。这些值，我同事用java是可以用的。现在，我需要用golang来进行设置。但是，运行示例代码的时候，出现了**no such host exit status 255**的错误。\r\n\r\n翻看 [OSS错误响应](https://www.alibabacloud.com/help/zh/doc-detail/32005.htm) 没有错误代码255的解释。\r\n\r\n## 运行示例代码\r\n\r\n[运行示例](https://help.aliyun.com/document_detail/32144.html?spm=a2c4g.11186623.6.827.jfIxYL)\r\n下载代码文件。从GitHub下载OSS Go SDK的代码。\r\n修改sample/config.go里的Endpoint、AccessKeyId、AccessKeySecret、BucketName配置。\r\n执行go run sample.go。\r\n\r\n```\r\n➜  aliyun-oss-go-sdk git:(master) ✗ go run sample.go \r\noccurred error: Put http://<my-bucket>.<endpoint>/: dial tcp: lookup <my-bucket>.<endpoint>: no such host\r\nexit status 255\r\n```\r\n\r\n## 相关信息\r\n\r\n```\r\n➜  aliyun-oss-go-sdk git:(master) ✗ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.3 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n➜  aliyun-oss-go-sdk git:(master) ✗ go version\r\ngo version go1.9.1 linux/amd64\r\n```\r\n"}}
{"actor":{"display_login":"JohnTian"}}