PyPi_GrowattServer icon indicating copy to clipboard operation
PyPi_GrowattServer copied to clipboard

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

Open OrranaLhaynher opened this issue 4 years ago • 5 comments

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?

OrranaLhaynher avatar Aug 27 '21 13:08 OrranaLhaynher

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

indykoning avatar Sep 06 '21 12:09 indykoning

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.

Sjord avatar Sep 06 '21 12:09 Sjord

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 avatar Sep 06 '21 12:09 OrranaLhaynher

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

OrranaLhaynher avatar Sep 06 '21 12:09 OrranaLhaynher

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.

indykoning avatar Dec 03 '21 19:12 indykoning