growatt_api_client icon indicating copy to clipboard operation
growatt_api_client copied to clipboard

Log in problems - again

Open roger-stedman opened this issue 2 years ago • 8 comments

Apologies - Have downloaded and installed. Updated as per advice in issue 32 and 30. Have tried all versions of server url (growatt-api.com, growatt-us.com and growatt.com - all with both https:// and http://) but I am still getting failed login. Any advice greatly received. I am trying to use my pi to create a power switch that turns on when the PV panels are generating sufficient power (to charge my EV)

(venv) rstedman@raspberrypi:~/growatt_api_client $ venv/bin/python3.9 -m growatt '{my-username}' '{my-password}' Traceback (most recent call last): File "/home/rstedman/growatt_api_client/growatt/init.py", line 71, in login result = self._back_success_response(response) File "/home/rstedman/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.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/rstedman/growatt_api_client/growatt/main.py", line 9, in api.login(username, password) File "/home/rstedman/growatt_api_client/growatt/init.py", line 76, in login raise LoginError growatt.LoginError

roger-stedman avatar Jan 27 '23 13:01 roger-stedman

Hello, from today on no login is possible anymore - I always get the following error:

Traceback (most recent call last):
  File "/home/pi/growatt_api_client/growatt/__init__.py", line 71, in login
    result = self._back_success_response(response)
  File "/home/pi/growatt_api_client/growatt/__init__.py", line 188, in _back_success_response
    raise GrowattApiError("Request failed: %s" % response)
growatt.GrowattApiError: Request failed: <Response [403]>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/growatt_api_client/growatt/__main__.py", line 19, in <module>
    api.login(username, password)
  File "/home/pi/growatt_api_client/growatt/__init__.py", line 76, in login
    raise LoginError
growatt.LoginError


Does anyone know if something has changed in the login prosess or are requests not coming from the official app blocked?

Yogi4301 avatar Mar 15 '23 17:03 Yogi4301

Hello,

I can still login but keep getting "account locked" errors from time to time. I call the API once a minute. Nothing changed in the login process for me.

olliebu avatar Mar 16 '23 16:03 olliebu

Not working . I gave user id and password. Any one knows if we can get the token? growatt support doesnt know what i am talking about

xtendtech avatar Mar 22 '23 22:03 xtendtech

The login is working for me now with newLogin() at "https://server.growatt.com". But I also never got a reply from Growatt support. I don't have any hopes in them that they will ever reply to my query.

olliebu avatar Mar 22 '23 22:03 olliebu

The login is working for me now with newLogin() at "https://server.growatt.com". But I also never got a reply from Growatt support. I don't have any hopes in them that they will ever reply to my query.

is it using python code? can you share the code?

xtendtech avatar Apr 12 '23 15:04 xtendtech

The login is working for me now with newLogin() at "https://server.growatt.com". But I also never got a reply from Growatt support. I don't have any hopes in them that they will ever reply to my query.

is it using python code? can you share the code?

I am using this class for a successful connection growatt.py

olliebu avatar Apr 16 '23 10:04 olliebu

same problem for days

growatt.GrowattApiError: Request failed: <Response [400]>

What can I do? I use the class from post olliebu...

thomytp avatar Jul 12 '23 13:07 thomytp

For me the request still works without Error-Response.

olliebu avatar Jul 13 '23 10:07 olliebu