I tried to create a flow using the API. I submitted the data for a flow along with all nodes and their connections to POST /flows, but some error happened which caused the dashboard to show
Error adding flows
Cannot read properties of undefined (reading 'substring')
Now, when I access GET /flows it returns some flows that I already had implemented but the other problem is that it also returns a lot of nodes.
For example, this is also returned in the list:
{
"id": "baba6511.294428",
"type": "mqtt-broker",
"name": "...",
"broker": "...",
"port": "2884",
"clientid": "3",
"usetls": false,
"compatmode": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
},
When I try to access GET /flows/baba6511.294428, it returns a not found error which I don't get. Because if this is returned in the list, it should be an actual flow.
Any help is appreciated.