Hey Michel,
No worries about the name, happens way more often so I barely notice it.
On local the CHALL isn't necessary, so if you're testing this on the same server as MistServer it could mean the script you've made isn't working. Then again if you only ever need to run this locally it won't matter too much...
The CHALL being repeated means it failed.
Did just confirm using with our jsontest (which shows how the JSON is parsed) that technically only closing the password field is needed:
Valid JSON
jsontest
{"authorize":{"username":"username1","password":"a5762fbd2b0104e61a47ec748290842e"}}
{
"authorize":{
"password":"a5762fbd2b0104e61a47ec748290842e",
"username":"username1"
}
}
Missing "}}
jsontest
{"authorize":{"username":"username1","password":"a5762fbd2b0104e61a47ec748290842e
{
"authorize":{
"password":"a5762fbd2b0104e61a47ec748290842ee",
"username":"username1"
}
}
Only "
jsontest
{"authorize":{"username":"username1","password":"a5762fbd2b0104e61a47ec748290842e"
{
"authorize":{
"password":"a5762fbd2b0104e61a47ec748290842e",
"username":"username1"
}
}
The password grew an additional "e" when not closing the password field properly. So that would mean the CHALL indeed fails as it wouldn't match the needed result.
The jsontest is in the build/test directory if you're compiling MistServer yourself. It can be used by starting it, pasting/typing the json and then closing it with "ctrl+d" to show the result.