{"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":6,"created_at":"2015-07-10T22:54:41Z","updated_at":"2015-07-16T03:26:02Z","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/121816200","html_url":"https://github.com/splunk/splunk-sdk-python/pull/111#issuecomment-121816200","issue_url":"https://api.github.com/repos/splunk/splunk-sdk-python/issues/111","id":121816200,"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},"created_at":"2015-07-16T03:26:02Z","updated_at":"2015-07-16T03:26:02Z","body":"yeah normally 8089, but ops team is running it on 443.  Very strange that\nyou're not seeing it on your end, but understand the data leakage issue (a\nconcern of mine too....but pragmatism won out).  I''ll just continue to\npatch until I figure it out.....but thanks for your consideration.  Will\npost back here if I figure out the root cause.\n\n-Axel\n\nOn Wed, Jul 15, 2015 at 2:27 PM, Itay Neeman <notifications@github.com>\nwrote:\n\n> @whisperstream <https://github.com/whisperstream> we've tried now on\n> multiple machines, including clean VMs, and a couple of Python versions,\n> and simply cannot reproduce this. It's also a section of code that hasn't\n> changed since we launched the SDKs.\n>\n> I think we're likely going to have to decline the PR, because the solution\n> of not calling connection.close will cause us to leak the connection.\n> That said, we do realize you're hitting this issue, so we want to try and\n> help you there.\n>\n> I just want to doublecheck: when you set it to port 443 and some host,\n> this is where the splunk management port is running (normally 8089), yes?\n> i.e. not the UI ports.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/splunk/splunk-sdk-python/pull/111#issuecomment-121755518>\n> .\n>\n"}}