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

Problem with login #32

Open
SlaSerX opened this issue Jul 26, 2022 · 3 comments
Open

Problem with login #32

SlaSerX opened this issue Jul 26, 2022 · 3 comments

Comments

@SlaSerX
Copy link

SlaSerX commented Jul 26, 2022

Hello have any solutions i cant login

└> python3.8 -m growatt '' ''
Traceback (most recent call last):
File "/home/slaserx/lab/growatt_api_client/growatt/init.py", line 71, in login
result = self._back_success_response(response)
File "/home/slaserx/lab/growatt_api_client/growatt/init.py", line 157, in _back_success_response
raise GrowattApiError("Request failed: %s" % response)
growatt.GrowattApiError: Request failed: <Response [400]>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slaserx/lab/growatt_api_client/growatt/main.py", line 9, in
api.login(username, password)
File "/home/slaserx/lab/growatt_api_client/growatt/init.py", line 76, in login
raise LoginError
growatt.LoginError

@Sjord
Copy link
Owner

Sjord commented Jul 26, 2022

Could you take a look at Use newTwoLoginAPI to login by Sjord · Pull Request #31 · Sjord/growatt_api_client and see if that helps?

@SlaSerX
Copy link
Author

SlaSerX commented Jul 27, 2022 via email

@Keetmalin
Copy link

Keetmalin commented Sep 20, 2022

I'm a new user. I am also getting the same error. This PR #31 actually solves it

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

3 participants