growatt_api_client icon indicating copy to clipboard operation
growatt_api_client copied to clipboard

Problem with login

Open SlaSerX opened this issue 3 years ago • 3 comments

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

SlaSerX avatar Jul 26 '22 07:07 SlaSerX

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

Sjord avatar Jul 26 '22 20:07 Sjord

Yes I make all of this but still it's same :(

На вт, 26.07.2022 г., 23:10 ч. Sjoerd Langkemper @.***> написа:

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

— Reply to this email directly, view it on GitHub https://github.com/Sjord/growatt_api_client/issues/32#issuecomment-1195928984, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLJHTWNLFWCM6BCQWKJ54TVWBAYJANCNFSM54U2GD4Q . You are receiving this because you authored the thread.Message ID: @.***>

SlaSerX avatar Jul 27 '22 06:07 SlaSerX

I'm a new user. I am also getting the same error. This PR https://github.com/Sjord/growatt_api_client/pull/31 actually solves it

Keetmalin avatar Sep 20 '22 04:09 Keetmalin