fix for Splunk Support Case: 204977#111
fix for Splunk Support Case: 204977#111whisperstream wants to merge 1 commit intosplunk:masterfrom whisperstream:master
Conversation
|
@whisperstream can you post a small script that shows your problem without your fix? We have many tests and usage of oneshot queries which work fine, so I want to verify. |
------------ results without fix ---------------------- ------------- results with fix --------------------- |
|
Just tried this locally with the SDK, no issues: Output is: The issue I have with the fix is that the It's very odd that you're seeing the issue. Can you share a bit about your environment (OS, Python version, etc)? |
|
Sure, I installed the sdk using: On both Mac OSX (10.9.5) using python 2.7.5 and Ubuntu (14.04) using -Axel On Fri, Jul 10, 2015 at 5:05 PM, Itay Neeman notifications@github.com
|
|
@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. I think we're likely going to have to decline the PR, because the solution of not calling I 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. |
|
yeah normally 8089, but ops team is running it on 443. Very strange that -Axel On Wed, Jul 15, 2015 at 2:27 PM, Itay Neeman notifications@github.com
|
* Revamp tool settings * Make tags non-optional * Replace unittest.skipTest() with pytest.skip() * Match typehint for tool.tags with the LangChain StructuredTool * Remove defaults from ToolSettings * Fix tests, duplication in README * Update README
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):
File "/usr/local/lib/python2.7/dist-packages/splunklib/client.py", line 305, in connect
return Service(**kwargs).login()
File "/usr/local/lib/python2.7/dist-packages/splunklib/binding.py", line 764, in login
session = XML(body).findtext("./sessionKey")
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
return parser.close()
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err