-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hello
The following script fail when vproxy is different from the default value ''
How should I use the "vproxy" parameter?
import qsAPI
import sys
user = sys.argv[1]
servers=['server1', server2]
vproxys = ['', 'azure']
for server in servers:
for vproxy in vproxys:
print(server + " : " + vproxy)
qps=qsAPI.QPS(proxy=server, vproxy=vproxy, certificate='./client.pem')
print(qps.GetUser('GROUP', user).json())Error:
server1 :
API GET </qps/user/GROUP/redaelli>
[]
server1: azuresaml
API GET </qps/user/GROUP/redaelli>
Traceback (most recent call last):
File "/home/matteo/src/pirelli/qlik-cli.old/sessions.py", line 14, in <module>
print(qps.GetUser('GROUP', user).json())
File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels