We are getting 410 exception when we are trying to use SDK for querying backend SQL server for Solarwinds (python script). Tried the same with both user + admin credentials.
Please help suggest the workaround for the same.
~$python SwMon/testsw.py
Query Test:
Traceback (most recent call last):
File "SwMon/testsw.py", line 19, in <module>
results = swis.query("SELECT TOP 3 NodeID, DisplayName FROM
Orion.Nodes")
File "/home/rijain/SwMon/lib/orionsdk/swisclient.py", line 24, in query
{'query': query, 'parameters': params}).json()
File "/home/rijain/SwMon/lib/orionsdk/swisclient.py", line 59, in _req
resp.raise_for_status(
File
"/appl/pm/vendor/dev/python/lx-x86_64/anaconda2/lib/python2.7/site-packages/requests/models.py", line 928, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://solarwinds/Orion/Login.aspx?ReturnUrl=%2fSolarWinds%2fInformationService%2fv3%2fJson%2fQuery
Thanks