{"action":"created","issue":{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111","labels_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111/comments","events_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111/events","html_url":"https://github.com/splunk/splunk-sdk-python/pull/111","id":94408919,"number":111,"title":"fix for Splunk Support Case: 204977","user":{"login":"whisperstream","id":3216061,"avatar_url":"https://avatars.githubusercontent.com/u/3216061?v=3","gravatar_id":"","url":"https://api.github.com/users/whisperstream","html_url":"https://github.com/whisperstream","followers_url":"https://api.github.com/users/whisperstream/followers","following_url":"https://api.github.com/users/whisperstream/following{/other_user}","gists_url":"https://api.github.com/users/whisperstream/gists{/gist_id}","starred_url":"https://api.github.com/users/whisperstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whisperstream/subscriptions","organizations_url":"https://api.github.com/users/whisperstream/orgs","repos_url":"https://api.github.com/users/whisperstream/repos","events_url":"https://api.github.com/users/whisperstream/events{/privacy}","received_events_url":"https://api.github.com/users/whisperstream/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/labels/waiting%20for%20response","name":"waiting for response","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-10T22:54:41Z","updated_at":"2015-07-15T21:27:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/pulls/111","html_url":"https://github.com/splunk/splunk-sdk-python/pull/111","diff_url":"https://github.com/splunk/splunk-sdk-python/pull/111.diff","patch_url":"https://github.com/splunk/splunk-sdk-python/pull/111.patch"},"body":"This is a fix for the support Case 204977 which I opened a while back:  Without this fix, whenever I tried to execute a oneshot query, I would get back the following exception (this pull request fixes this issue):\r\n\r\n  File \"/usr/local/lib/python2.7/dist-packages/splunklib/client.py\", line 305, in connect\r\n    return Service(**kwargs).login()\r\n  File \"/usr/local/lib/python2.7/dist-packages/splunklib/binding.py\", line 764, in login\r\n    session = XML(body).findtext(\"./sessionKey\")\r\n  File \"/usr/lib/python2.7/xml/etree/ElementTree.py\", line 1301, in XML\r\n    return parser.close()\r\n  File \"/usr/lib/python2.7/xml/etree/ElementTree.py\", line 1654, in close\r\n    self._raiseerror(v)\r\n  File \"/usr/lib/python2.7/xml/etree/ElementTree.py\", line 1506, in _raiseerror\r\n    raise err\r\n"},"comment":{"url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/comments/121755518","html_url":"https://github.com/splunk/splunk-sdk-python/pull/111#issuecomment-121755518","issue_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111","id":121755518,"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-07-15T21:27:51Z","updated_at":"2015-07-15T21:27:51Z","body":"@whisperstream we've tried now on multiple machines, including clean VMs, and a couple of Python versions, and simply cannot reproduce this. It's also a section of code that hasn't changed since we launched the SDKs.\r\n\r\nI think we're likely going to have to decline the PR, because the solution of not calling `connection.close` will cause us to leak the connection. That said, we do realize you're hitting this issue, so we want to try and help you there.\r\n\r\nI just want to doublecheck: when you set it to port 443 and some host, this is where the splunk management port is running (normally 8089), yes? i.e. not the UI ports."}}