Session Token Works with Postman but not with Python Requests
PlannedHi, I am experiencing a weird issue that the session token authentication works with postman but not with Python requests.I am trying to access the devices api, everytime I receive 401.
I have already tried using allow_redirects=True, as per other discussions.
-
Hello,
These redirects in pythons should be processed slightly different than just setting allow_redirects=True.
Please see a code example in our repo on GitHub
0 -
Thanks for your quick reply, I tried that already. That's the case when you receive temporary redirect status codes in the response. This is not the case, the requests throw 401 directly, which doesn't even enter the redirect handling condition.
0 -
Hi,
HTTP error 401 means Unauthorized. Please, check that credentials you're using in your python script are valid and the authentication scheme you're using in python script is the same set for the account in VMS.
0
Please sign in to leave a comment.
Comments
3 comments