Connection problems after Server update #14
-
Hi, after the server update, the script no longer works. I have been communicating with Huawei support for some time, and they already discovered on syntax problem in line 556 of functions.sh: logowanie=$(echo '{userName: "'$userName'", systemCode: "'$systemCode'"}'| http --print=hb --follow --timeout 3600 POST https://eu5.fusionsolar.huawei.com/thirdData/login Content-Type:'application/json' Cookie:'Cookie_1=value; web-auth=true;') But that has also not solved the problem. The screenoutput is: So, the success flag is set to positive, but I still get: Network Error :( So it seems that the ouput of the above command has changed with the server update and can no longer be properly interpreted? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 12 replies
-
Same issue here: Problems with conection to Huawei Server Network Error :( |
Beta Was this translation helpful? Give feedback.
-
Apparently, the output syntax has changed, and the separators like Thanks so much to the developers for the great work! |
Beta Was this translation helpful? Give feedback.
-
Hello I'm happy that you are interested in this issue I upload you partially working code to repository which can login but still can't extract xsrf-token functions.sh my changes are now in lines between 538 to 572 . I'm working on this now but rebuilding function login_to_API may take me some time so if someone of you can upload working solution faster I will be really happy to accept your contribution. I send you both invitation for collaboration so you can create pull request. I also hope that all will work correctly after rebuilding only this one function but who now hope there will be not much necessary changes. |
Beta Was this translation helpful? Give feedback.
-
Hi, sure, I will be happy to help. Note, though, that the invitation
leads to 404.
cheers,
Jan-Uwe
…On 20/5/21 23:35, BlazejosP wrote:
Hello I'm happy that you are interested in this issue, Software stop
working because this line 561 in functions.sh and userName and
systemCode now needs this "
So congratulations for @januweness <https://github.com/januweness> he
solved the problem first correctly but things are more complex to made
software working again. As @xvanhien <https://github.com/xvanhien>
also congratulations found problem is with extract xsrf-token from
answer which is not extracted correctly.
I upload you partially working code which can login but still can't
extract xsrf-token. I'm working on this now but rebuilding function
login_to_API may take me some time so if someone of you can upload
working solution faster I will be really happy to accept your contribution
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTM3ACYOTLZW7GJRTJQL63TOV6BLANCNFSM44ZLTGMA>.
--
P.S. This e-mail might reach you during non-working hours. This is a
matter of my personal work-life balance and travel schedule only. I do
not expect to receive a reply outside of your usual working hours.
Dr. Jan-Uwe Ness
Operations Scientist
Chair of ESAC Science Faculty
European Space Astronomy Centre
Camino Bajo del Castillo s/n
Urb. Villafranca del Castillo
28692 Villanueva de la Canada
Madrid, Spain
http://januweness.eu <http://januweness.eu>
ORCID 0000-0003-0440-7193
This message is intended only for the recipient(s) named above. It may contain proprietary information and/or
protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received
this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect
personal data, in case of data privacy queries, please contact the ESA Data Protection Officer ***@***.***).
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I forgot to sign in. Now I have accepted and can edit.
I will develop offline first for testing let you know when I get the
token extraction to work. At least that one should be straight forward,
just tedious, but I am happy to work on that.
Thanks,
Jan-Uwe
…On 20/5/21 23:55, BlazejosP wrote:
I have in panel that invitation is waiting for your acceptance. Can
you check again and check if you can made some changes in repository now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTM3AFJXNPTXHMAPW7X4ELTOWAOFANCNFSM44ZLTGMA>.
--
P.S. This e-mail might reach you during non-working hours. This is a
matter of my personal work-life balance and travel schedule only. I do
not expect to receive a reply outside of your usual working hours.
Dr. Jan-Uwe Ness
Operations Scientist
Chair of ESAC Science Faculty
European Space Astronomy Centre
Camino Bajo del Castillo s/n
Urb. Villafranca del Castillo
28692 Villanueva de la Canada
Madrid, Spain
http://januweness.eu <http://januweness.eu>
ORCID 0000-0003-0440-7193
This message is intended only for the recipient(s) named above. It may contain proprietary information and/or
protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received
this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect
personal data, in case of data privacy queries, please contact the ESA Data Protection Officer ***@***.***).
|
Beta Was this translation helpful? Give feedback.
-
Software is working again function login_to_API rebuild and working like before. Test on your installations different functions hope will work also for you. Generally working also other functions but are some problems with handling dates so function which use actually time need some touch rebuid date handling. |
Beta Was this translation helpful? Give feedback.
-
Wow!!!! Thanks so much. Your are a crack ;-)
cheers,
Jan-Uwe
…On 21/5/21 21:35, BlazejosP wrote:
Software is working again function login_to_API rebuild and working
like before.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTM3AGGM6TUK7WC5SUTQ23TO2YYZANCNFSM44ZLTGMA>.
--
P.S. This e-mail might reach you during non-working hours. This is a
matter of my personal work-life balance and travel schedule only. I do
not expect to receive a reply outside of your usual working hours.
Dr. Jan-Uwe Ness
Operations Scientist
Chair of ESAC Science Faculty
European Space Astronomy Centre
Camino Bajo del Castillo s/n
Urb. Villafranca del Castillo
28692 Villanueva de la Canada
Madrid, Spain
http://januweness.eu <http://januweness.eu>
ORCID 0000-0003-0440-7193
This message is intended only for the recipient(s) named above. It may contain proprietary information and/or
protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received
this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect
personal data, in case of data privacy queries, please contact the ESA Data Protection Officer ***@***.***).
|
Beta Was this translation helpful? Give feedback.
-
I have same error, it isn't fixt... :-( Please wait connecting! value {array2[18]} = true,"failCode" value {array2[0]} = true {"data":null "success":true "failCode":0 "params":{} "message":null} value array3[40] = {"data":null,"success":true,"failCode":0,"params":{},"message":null} Problems with conection to Huawei Server Request success or failure flag: Network Error :( When I change: local sucesfully_login_true_or_false=$(echo ''${array3[39]}'' | jq '.success' ) to local sucesfully_login_true_or_false=$(echo ''${array3[40]}'' | jq '.success' ) then next step is wrong. What can I change? |
Beta Was this translation helpful? Give feedback.
I have same error, it isn't fixt... :-(
Please wait connecting!
Connection and login to API with given Username&Password
value {array2[18]} = true,"failCode"
value {array2[0]} = true
true
HTTP/1.1 200 OK
Server: product only
Date: Mon 24 May 2021 12:04:42 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
set-cookie: XSRF-TOKEN=x-ul7y7y0b5gjzldpcirmno7bvc6s9c4mnrtde1d3xqp3wc7by1eem7sjvs8lg8646apljumvy1gc8de6mekc60506uk04eog8btjytgtibx9cs40auoc7c444rwby6p5j;Path=/ ;Secure
x-trace-enable: false
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
xsrf-token: x-ul7y7y0b5gjzldpcirmno7bvc6s9c4mnrtde1d3xqp3wc7by1eem7sjvs8lg8646apljumvy1…