Closed naisanzaa closed 2 years ago
solution: https://github.com/splunk/splunk-sdk-python/issues/217#issuecomment-421004504
though, it could have a better error messeage
From the response body you're getting it looks like you had the same problem I did: using the UI port will redirect you to a path containing the displya language.
What fixed it for me was to use the management port instead (8089 in my case).
Hi @naisanzaa , could you please verify which port and scheme are being set in the configuration before calling the connect service.
The connect service works properly when port = 8089
and scheme=https
. Default value for scheme is 'https' if not set explicitly. Please try using the port = 8089
and scheme=https
setting and let us know if you still face the error
Hi @naisanzaa , could you please verify which port and scheme are being set in the configuration before calling the connect service. The connect service works properly when
port = 8089
andscheme=https
. Default value for scheme is 'https' if not set explicitly. Please try using theport = 8089
andscheme=https
setting and let us know if you still face the error
I'll double check and add in the scheme explicitly
@naisanzaa Closing this issue due to no response on it. Please reopen if this is still an issue.
the python sdk isn't handling http 303 redirects
related: https://github.com/splunk/splunk-sdk-python/issues/311#issuecomment-696247004
splunk-sdk==1.6.13
code: https://github.com/TheShellLand/automon-core/blob/master/automon/integrations/splunk/client.py#L9-L13
Error:
splunk config:
The response body isn't xml, it's html:
b'<!doctype html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="1;url=https://server/en-US/services/auth/login"><title>303 See Other</title></head><body><h1>See Other</h1><p>The resource has moved temporarily <a href="https://server/en-US/services/auth/login">here</a>.</p></body></html>\r\n'