BlazejosP / huawei-sun2000-API-CLI

Huawei SUN2000 compatible devices which working with Huawei Cloud Service command line bash API for monitoring or download data from their FusionSolarApp API
https://www.buymeacoffee.com/blazejosP
GNU General Public License v3.0
110 stars 15 forks source link

jq error since 04-03-2023 #33

Open xvanhien opened 1 year ago

xvanhien commented 1 year ago

I have this message. I try some debugging....

Please wait connecting! Connection to API

API login to server OK Request success or failure flag: true Username & Password accepted by Huawei Server Normal Status { "failCode": 305, "immediately": true, "message": "USER_MUST_RELOGIN" } jq: error (at :1): Cannot iterate over null (null)

ndefined Error \nReturned data:

BlazejosP commented 1 year ago

I also have this error

jq: error (at :1): Cannot iterate over null (null)

thanks for mentioning that probably again something was changed in API without notice by Huawei. Probably in Login function like many times before. I wiil look into this in next few days but if you will find something I also willl be happy to include this inside code :+1:

BlazejosP commented 1 year ago

@januweness probably has the answer for this problem in this issue https://github.com/BlazejosP/huawei-sun2000-API-CLI/issues/35#issuecomment-1561104190