Having issues with the query function within the OrionSDK not building the API request correctly. Instead of building the URL "">MYSOLARWINDSINSTANCE.com:17774/.../Query I am getting "MYSOLARWINDSINSTANCE.com:17774/.../Query" causing [Errno 11001] getaddrinfo failed.
The first URL listed can be accessed and returns successfully when I specify the URL in a GET request. Ex: requests.get("">MYSOLARWINDSINSTANCE.com:17774/.../Query) just not when using the query function.
Accessing SolarWinds version 2023.1.0 using version 0.4.0 of the OrionSDK for Python.
Code:
import requests
from orionsdk import SwisClient
from orionsdk import solarwinds
def main():
server = "MYSOLARWINDSINSTANCE"
Username = "username"
password = "password"
response = requests.get(server, auth=(username, password), verify=False)
swis = SwisClient(server, username, password)
results = swis.query("SELECT NodeID from Orion.Nodes")
print(results)
main()