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

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

Open
OrranaLhaynher opened this issue Aug 27, 2021 · 5 comments

Comments

@OrranaLhaynher
Copy link

OrranaLhaynher commented Aug 27, 2021

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 OrranaLhaynher changed the title Error in connection with growatt server HTTP Status 400 - Parameter conditions "op=getUserServerUrl" not met for actual request parameters: Sep 1, 2021
@indykoning
Copy link
Owner

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
Copy link

Sjord commented Sep 6, 2021

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

@OrranaLhaynher
Copy link
Author

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
Copy link
Author

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

@indykoning
Copy link
Owner

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.

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

3 participants