Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code":4300,"message":"Have no authority to the request" #86

Open
E4sy06 opened this issue Mar 29, 2024 · 0 comments
Open

code":4300,"message":"Have no authority to the request" #86

E4sy06 opened this issue Mar 29, 2024 · 0 comments

Comments

@E4sy06
Copy link

E4sy06 commented Mar 29, 2024

Hello!

I would like to use your history method to capture and virtualize the data. The only problem is that I always get the error code":4300, "message": "Have no authority to the request" when I try to do this. I get the same with the "get device" method

Can anyone help me?

Also, when I run the following, I get:

def login_to_panasonic(username, password):
url = "https://accsmart.panasonic.com/auth/login"
headers = {
"X-APP-TYPE": "1",
"X-APP-VERSION": "1.20.0",
"user-agent": "G-RAC",
"X-APP-TIMESTAMP": "1",
"X-APP-NAME": "Comfort Cloud",
"X-CFC-API-KEY": "Comfort Cloud",
"Accept": "application/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8"
}
payload = {
"language": "0",
"loginId": username,
"password": password
}

response = requests.post(url, headers=headers, data=json.dumps(payload))

if response.status_code == 200:
    print("Login successful")
    return response.json()
else:
    print("Login error:", response.text)
    return None

The following error
Error during login: {"code":5001, "message": "DB system error due to db system"}

Thx
E4sy06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant