indykoning / PyPi_GrowattServer

MIT License
70 stars 32 forks source link

Getting Error 403 on login #73

Closed martinsadler closed 10 months ago

martinsadler commented 10 months ago

As of today I'm getting the following error when trying to login:

HTTPError: 403 Client Error: Forbidden for url: https://server.growatt.com/newTwoLoginAPI.do

This happens with the original processTofiles.py script and with my derivations.

I think a clue may be the "....newTwoLoginAPI.do" part?

martinsadler commented 10 months ago

It seems we now have to provide a UserAgent in the api initialisation call.

api=growattServer.GrowattApi(False,"newname") worked OK.

rowanbradley commented 5 months ago

I've tried this but am still getting the 405 error. What do I try next?

Python Noob