{"action":"created","issue":{"url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/1","labels_url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/1/comments","events_url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/1/events","html_url":"https://github.com/lokielse/aliyun-open-api-rds/issues/1","id":123223303,"number":1,"title":"[Aliyun\\Core\\Exceptions\\ClientException]   Can not find endpoint to access.","user":{"login":"erigo","id":436187,"avatar_url":"https://avatars.githubusercontent.com/u/436187?v=3","gravatar_id":"","url":"https://api.github.com/users/erigo","html_url":"https://github.com/erigo","followers_url":"https://api.github.com/users/erigo/followers","following_url":"https://api.github.com/users/erigo/following{/other_user}","gists_url":"https://api.github.com/users/erigo/gists{/gist_id}","starred_url":"https://api.github.com/users/erigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erigo/subscriptions","organizations_url":"https://api.github.com/users/erigo/orgs","repos_url":"https://api.github.com/users/erigo/repos","events_url":"https://api.github.com/users/erigo/events{/privacy}","received_events_url":"https://api.github.com/users/erigo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T07:18:53Z","updated_at":"2015-12-21T08:39:38Z","closed_at":null,"body":"非常感谢作者的贡献！阿里云官方SDK想要集成到项目里好麻烦呀～\r\n\r\n按照 `readme` 里面写的方式测试了一下，报\r\n\r\n```\r\n[Aliyun\\Core\\Exceptions\\ClientException]\r\n  Can not find endpoint to access.\r\n```\r\n\r\n跟踪了一下代码，发现 `aliyun-open-api-core/src/Regions/EndpointProvider.php` 中第 `29` 行，`self::$endpoints` 为 `NULL`\r\n\r\n不知道是不是还有哪里配置的不正确。\r\n请指教，以下是我的代码：\r\n\r\n```\r\n$this->profile = DefaultProfile::getProfile('cn-hangzhou', $_ENV['ALIYUN_AK'], $_ENV['ALIYUN_SK']);\r\n\r\n$request = new DescribeDBInstancesRequest();\r\n$request->setRegionId('cn-hangzhou');\r\n\r\n$client = new DefaultAcsClient($this->profile);\r\nreturn $client->getAcsResponse($request);\r\n```"},"comment":{"url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/comments/166233376","html_url":"https://github.com/lokielse/aliyun-open-api-rds/issues/1#issuecomment-166233376","issue_url":"https://api.github.com/repos/lokielse/aliyun-open-api-rds/issues/1","id":166233376,"user":{"login":"erigo","id":436187,"avatar_url":"https://avatars.githubusercontent.com/u/436187?v=3","gravatar_id":"","url":"https://api.github.com/users/erigo","html_url":"https://github.com/erigo","followers_url":"https://api.github.com/users/erigo/followers","following_url":"https://api.github.com/users/erigo/following{/other_user}","gists_url":"https://api.github.com/users/erigo/gists{/gist_id}","starred_url":"https://api.github.com/users/erigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erigo/subscriptions","organizations_url":"https://api.github.com/users/erigo/orgs","repos_url":"https://api.github.com/users/erigo/repos","events_url":"https://api.github.com/users/erigo/events{/privacy}","received_events_url":"https://api.github.com/users/erigo/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T08:39:38Z","updated_at":"2015-12-21T08:39:38Z","body":"我不知道我做的对不对，我在前面加了下面的代码\r\n\r\n```\r\n$endpoint = new Endpoint('cn-hangzhou', EndpointConfig::getRegionIds(), EndpointConfig::getProductDomains());\r\n$endpoints = array($endpoint);\r\nEndpointProvider::setEndpoints($endpoints);\r\n```\r\n\r\n并且在 EndpointConfig 里修改了 Rds 的域名。"}}