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

Log in problems - again #37

Open
roger-stedman opened this issue Jan 27, 2023 · 8 comments
Open

Log in problems - again #37

roger-stedman opened this issue Jan 27, 2023 · 8 comments

Comments

@roger-stedman
Copy link

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

@Yogi4301
Copy link

Yogi4301 commented Mar 15, 2023

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?

@olliebu
Copy link

olliebu commented Mar 16, 2023

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.

@xtendtech
Copy link

xtendtech commented Mar 22, 2023

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

@olliebu
Copy link

olliebu commented Mar 22, 2023

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.

@xtendtech
Copy link

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?

@olliebu
Copy link

olliebu commented Apr 16, 2023

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

@thomytp
Copy link

thomytp commented Jul 12, 2023

same problem for days

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

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

@olliebu
Copy link

olliebu commented Jul 13, 2023

For me the request still works without Error-Response.

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

5 participants