The network interface type is not set in the JSON. After adding it the demo is successful.
"DISCO_F413ZH": {
"target.components_add": ["QSPIF"],
"target.components_add": ["ism43362"],
"target.network-default-interface-type": "WIFI",
"target.macros_add" : ["MBEDTLS_SHA1_C"]
},