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

API getStationList connection Error #34

Open
etamtlosz opened this issue May 17, 2023 · 6 comments
Open

API getStationList connection Error #34

etamtlosz opened this issue May 17, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@etamtlosz
Copy link

I just received my API credentials from my installer company.
Unfortunately I'm getting the following error:

Connection to API

API login to server OK
Username & Password accepted by Huawei Server
Normal Status
jq: error (at <stdin>:1): Cannot iterate over null (null)

API getStationList connection Error
ou do not have the permission on the related data interface.
Optional message:  "Invalid access to current interface!"

        Plant 1:
        Plant Name:
        Address of the plant:
        Installed capacity:  MWp
        Plant contact:
        Contact phone number:
        Plant Status: Unknown
        Grid connection type: Unknown
        Poverty alleviation plant: Unknown

parse error: Unfinished string at EOF at line 2, column 0
parse error: Unfinished string at EOF at line 2, column 0
Message: Don't know when

Please wait disconnecting!
Disconnection from API

API logout from server OK
Logout accepted by Huawei Server
Normal Status

Am I doing something wrong? Or my installer has forgot to set something up? Mine is the first API account they've set up ever.

@TheBlackOne
Copy link

TheBlackOne commented May 19, 2023

The getStationList endpoint has been removed*, more info here: https://forum.huawei.com/enterprise/en/forum.php?mod=redirect&goto=findpost&ptid=591478&pid=5806499

@BlazejosP you might want to implement calling against stations instead.

(*) It seems to still work for API accounts created before June 30, 2022.

@BlazejosP
Copy link
Owner

Thanks for that inf I will try to implement this new API call hope that this will solve such problems like your @etamtlosz you done all ok but looks like this new accout are different. Is possible @TheBlackOne to found somwhere new Huawei description documentation about Northbound API ?

@BlazejosP BlazejosP added the bug Something isn't working label May 22, 2023
@TheBlackOne
Copy link

iMaster NetEco V600R023C00 Northbound Interface Reference-V6(SmartPVMS).pdf

@BlazejosP
Copy link
Owner

BlazejosP commented May 26, 2023

Exactly this new recent manual is this what I need to implement this in new style may take around a few days. If you have yourself working bash code I will really appropriate code modernization.

@etamtlosz
Copy link
Author

Any update on this?
Thank you

@BlazejosP
Copy link
Owner

Any update on this? Thank you

I have actually documentation now is time to modernization of code. If you also d'like to add something I really like to include this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants