{"action":"created","issue":{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/101","labels_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/101/comments","events_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/101/events","html_url":"https://github.com/splunk/splunk-sdk-python/issues/101","id":87661663,"number":101,"title":"_get_kind_list raise 404 Error when retrieving subkinds","user":{"login":"missing1984","id":1692592,"avatar_url":"https://avatars.githubusercontent.com/u/1692592?v=3","gravatar_id":"","url":"https://api.github.com/users/missing1984","html_url":"https://github.com/missing1984","followers_url":"https://api.github.com/users/missing1984/followers","following_url":"https://api.github.com/users/missing1984/following{/other_user}","gists_url":"https://api.github.com/users/missing1984/gists{/gist_id}","starred_url":"https://api.github.com/users/missing1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missing1984/subscriptions","organizations_url":"https://api.github.com/users/missing1984/orgs","repos_url":"https://api.github.com/users/missing1984/repos","events_url":"https://api.github.com/users/missing1984/events{/privacy}","received_events_url":"https://api.github.com/users/missing1984/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-12T08:51:42Z","updated_at":"2015-11-21T01:41:10Z","closed_at":"2015-11-21T01:41:10Z","body":"SDK 1.3.1\r\n\r\nError trace\r\n```\r\nTraceback (most recent call last):\r\n  File \"sdktest.py\", line 88, in <module>\r\n    inputs(service)\r\n  File \"sdktest.py\", line 41, in inputs\r\n    for i in inputs:\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2528, in __iter__\r\n    for item in self.iter(**kwargs):\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2552, in iter\r\n    for item in self.list(**kwargs):\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2455, in list\r\n    kinds = self.kinds\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2357, in kinds\r\n    return self._get_kind_list()\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2346, in _get_kind_list\r\n    subkinds = self._get_kind_list(subpath + [entry.title])\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2346, in _get_kind_list\r\n    subkinds = self._get_kind_list(subpath + [entry.title])\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 2334, in _get_kind_list\r\n    response = self.get('/'.join(subpath))\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 1611, in get\r\n    return super(Collection, self).get(name, owner, app, sharing, **query)\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/client.py\", line 709, in get\r\n    **query)\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/binding.py\", line 241, in wrapper\r\n    return request_fun(self, *args, **kwargs)\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/binding.py\", line 63, in new_f\r\n    val = f(*args, **kwargs)\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/binding.py\", line 586, in get\r\n    response = self.http.get(path, self._auth_headers, **query)\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/binding.py\", line 1057, in get\r\n    return self.request(url, { 'method': \"GET\", 'headers': headers })\r\n  File \"/Users/michael/workspace/stash/app-aws/package/bin/splunklib/binding.py\", line 1112, in request\r\n    raise HTTPError(response)\r\nsplunklib.binding.HTTPError: HTTP 404 Not Found -- Not Found\r\n\r\n```\r\n\r\n\r\n```python\r\n    def _get_kind_list(self, subpath=None):\r\n        if subpath is None:\r\n            subpath = []\r\n\r\n        kinds = []\r\n        response = self.get('/'.join(subpath))  -<< self.get will always encode slash that failed this request.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/comments/158573152","html_url":"https://github.com/splunk/splunk-sdk-python/issues/101#issuecomment-158573152","issue_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/101","id":158573152,"user":{"login":"itay","id":3266,"avatar_url":"https://avatars.githubusercontent.com/u/3266?v=3","gravatar_id":"","url":"https://api.github.com/users/itay","html_url":"https://github.com/itay","followers_url":"https://api.github.com/users/itay/followers","following_url":"https://api.github.com/users/itay/following{/other_user}","gists_url":"https://api.github.com/users/itay/gists{/gist_id}","starred_url":"https://api.github.com/users/itay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itay/subscriptions","organizations_url":"https://api.github.com/users/itay/orgs","repos_url":"https://api.github.com/users/itay/repos","events_url":"https://api.github.com/users/itay/events{/privacy}","received_events_url":"https://api.github.com/users/itay/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T01:41:10Z","updated_at":"2015-11-21T01:41:10Z","body":"This is no longer an issue."}}