I'm trying to use the RESTful API in python, but I keep on getting this error: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')).
I've done the following
Code: Select all
import requests
uri = "https://server-domain:9398/api/sessionMngr/?v=latest"
username = "..."
password = "..."
b64 = "..."
r = requests.get(uri, auth=(username, password), verify=False)
r = requests.get(uri, headers={'Authorization': f"Basic {b64}"}, verify=False)
Which I confirmed is already on.
Any leads would be helpful.
Thanks,
Allen