Skip to content

Still getting error 403 with version 1.5.0 #78

Description

@fisken

Hi,

I just updated to 1.5.0; the previous versions last worked for me a few months ago.
I changed the URL with the previous version but had no luck.

After updating, I'm still getting:

HTTPError Traceback (most recent call last)
ipython-input-4-06dc7ac3e99d in module
10
11 api = growattServer.GrowattApi(False, "adgahtwq3241")
---> 12 login_response = api.login(username, user_pass)
13 print("Add random ID to default User-Agent")
14 print("User-Agent: %s\nLogged in User id: %s" % (api.agent_identifier, login_response['userId']))
...
Further down:
HTTPError: 403 Client Error: Forbidden for url: https://openapi.growatt.com/newTwoLoginAPI.do

I have tried with:
api = growattServer.GrowattApi(False, "something")
api = growattServer.GrowattApi(True)
api = growattServer.GrowattApi()

All give the same HTTPError: 403.

Am I doing something wrong? I'm a Python novice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions