Hi Question: - Is there a service that needs to be active - Is this allowed only on host machine (SAS Logon Manager) When ever i run the above code on a remote machine (My Own PC) with URL set, the following functions sends the HTML version of the Login screen. Function: def registrationOauthTokenReuqest(appName, consulToken): print("Attempting to get a registration Oauth token") url = "http://" +str(sasserver)+ "/SASLogon/oauth/clients/consul?callback=false&serviceId="+ str(appName) headers = {"X-Consul-Token":str(consulToken)} r = requests.post(url, headers=headers, timeout=30) print(r.text) print("####################") print(r) if r.status_code == 200: print(r.json()) print("-------ACCESS TOKEN: " + str(r.json()['access_token'])) #admRec.write("The access token is: " + str(r.json()['access_token']) + "\n") return r.json()['access_token'] else: print("Could not get registration oauth token") Message: <Response [200]> Traceback (most recent call last): File "request_client.py", line 30, in <module> access_token = registrationOauthTokenReuqest(appName, consulToken) File "request_client.py", line 22, in registrationOauthTokenReuqest print(r.json()) File "/var/log/hadoop/anaconda3/lib/python3.6/site-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/var/log/hadoop/anaconda3/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/var/log/hadoop/anaconda3/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/var/log/hadoop/anaconda3/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 12 column 1 (char 11)
... View more