indykoning / PyPi_GrowattServer

MIT License
70 stars 32 forks source link

HTTP Status 400 - Parameter conditions "op=getUserServerUrl" not met for actual request parameters: #15

Open OrranaLhaynher opened 2 years ago

OrranaLhaynher commented 2 years ago

When looking in the url used in the package to log in server, this is the response ->

type Status report

message Parameter conditions "op=getUserServerUrl" not met for actual request parameters:

description The request sent by the client was syntactically incorrect.

And I can't retrieve any data from the inverters, maybe because of this?

indykoning commented 2 years ago

Do you get this error when calling the login function? Are you using a custom API url or the one that is in the package by default?

This is not happening for me when i try to use the login function, i don't see getUserServerUrl anywhere in the code here so i'm guessing it's complaining that it is missing that. But it's odd that this isn't happening all the time

If it does fail while logging in it would make sense that you wouldn't be able to retrieve any inverter data

Sjord commented 2 years ago

Also see https://github.com/Sjord/growatt_api_client/issues/23. @OrranaLhaynher seems to be on the OSS server, and I think the API is different there.

OrranaLhaynher commented 2 years ago

I tried this repository first, with the default repository URL, but I got this error. After that, I tried the Sjord/growatt_api_client repository, and found that when I access the server.growatt.com url and enter my account and password, it updates and is changed to oss.growatt.com (when I'm already logged in). So actually my problem is the API. And because of it I can't get any data from the inverters, as the structure differs from the API architecture that the repositories were created for.

OrranaLhaynher commented 2 years ago

In this case, I have to create all the code from zero, since the API is different?

indykoning commented 2 years ago

Let's hope not... Is there an app you can use to view your plant and inverter info? I think both of our connections are based on it working in the ShinePhone app. So if it works on there it should work in these packages.