Newbie here. I am running into an error creating a REST call in Python.
Code snippet:
headers = {'accept': 'application/json;odata=verbose'}
server_url = "https://atlnpm01:15888/SolarWinds/InformationService/v3/Json/Query"
data = '{"query":"SELECT, NODENAME, IPAddress, Caption, NodeDescription, Vendor, Location, Contact, FROM, Orion.Nodes ORDER BY NODENAME WITH ROWS 1 TO 100 WITH TOTALROWS"}'
results = requests.get(server_url, auth=(username,password),stream=True, headers=headers, verify=False, data=data)
Error :-
{"Message":"Value cannot be null.\u000d\u000aParameter name: query","ExceptionType":"System.ArgumentNullException","FullException":"System.ArgumentNullException: Value cannot be null.\u000d\u000aParameter name: query\u000d\u000a at SolarWinds.Data.Query.Engine.QueryProcessor.ProcessQueryWithDeferredReaderCreation(String query, IQueryExecutionContext context)\u000d\u000a at SolarWinds.InformationService.Core.QueryPlanCache.GetQueryPlan(String query, String username, Func`1 buildQueryPlan)\u000d\u000a at SolarWinds.InformationService.Core.InformationService.RunQuery(String query, IDictionary`2 parameters, IDataSerializer serializer)"}
>>>
What is it talking about? It will either do or sometimes give me "no viable alternative at input". Please help!!
Thanks