API - POST /pdustats error #1547
Unanswered
MathisICDC
asked this question in
Q&A
Replies: 1 comment 1 reply
-
When using swagger are you using a private window and entering your key?
Scott
…On Fri, Jul 12, 2024, 12:07 PM MathisICDC ***@***.***> wrote:
Hello,
I'm encontring an error "401 Access Denied" when i run my python script.
I'm only getting this error on this script, even though I already have 5
of them running every day. I use the same POST request and yet I still get
this error. I'm also using the same APIKey account for all the scripts, as
I'm using SAML authentication.
When I do it via swagger, there's no problem but via Postman or script
impossible.
Is anyone experiencing the same problem with this API POST /pdustats
request?
Here's the code I'm trying to run :
image.png (view on web)
<https://github.com/user-attachments/assets/94e023dc-d070-48b2-aba5-8da9a60de2c3>
Below is the result of my test script when I run the previous code:
C:\Users\X\Projet\Projet DCIM\Script\Python>python test.py
{"PDUID": 3757,"Wattage": 1200,"LastRead": "2024-07-12 17:36:07"}https://xxxxxxxx/api/v1/pdustats
{"error":true,"errorcode":401,"message":"Access Denied"}
Thank you for your help !
—
Reply to this email directly, view it on GitHub
<#1547>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMTY623VK46CIPUTRHJX2LZL75MPAVCNFSM6AAAAABKZGF44CVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWHEZDONRVGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm encontring an error "401 Access Denied" when i run my python script.
I'm only getting this error on this script, even though I already have 5 of them running every day. I use the same POST request and yet I still get this error. I'm also using the same APIKey account for all the scripts, as I'm using SAML authentication.
When I do it via swagger, there's no problem but via Postman or script impossible.
Is anyone experiencing the same problem with this API POST /pdustats request?
Here's the code I'm trying to run :
Below is the result of my test script when I run the previous code:
Thank you for your help !
Beta Was this translation helpful? Give feedback.
All reactions