jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 61 forks source link

Cannot read 'flowChart' of undefined on load #269

Closed aga11313 closed 3 years ago

aga11313 commented 3 years ago

Describe the bug

Upon the open of the Flow Canvas a following error shows up

Have you solved it? If so, let us know how!


Environment

Screenshots and logs

Error:

image

userFlows:

{ "mIOGAzy7G4CKcLITonpEI": { "isConnected": false, "name": "poke", "type": "user-generated", "flowChart": { "with": { "read_only": true, "rest_api": true, "port_expose": "$JINA_PORT", "board": { "canvas": { "gateway": { "x": 250, "y": 150 }, "chunk_seg": { "x": 250, "y": 268 }, "tf_encode": { "x": 250, "y": 420 }, "chunk_idx": { "x": 250, "y": 600 }, "ranker": { "x": 250, "y": 836 }, "doc_idx": { "x": 249, "y": 985 } } } }, "elements": [ { "id": "gateway", "type": "gateway", "data": { "label": "gateway", "depth": 0 }, "position": { "x": 250, "y": 150 } }, { "id": "chunk_seg", "type": "pod", "data": { "uses": "pods/craft.yml", "parallel": "$PARALLEL", "needs": [ "gateway" ], "label": "chunk_seg", "depth": 1 }, "position": { "x": 250, "y": 268 } }, { "id": "tf_encode", "type": "pod", "data": { "uses": "pods/encode.yml", "parallel": "$PARALLEL", "timeout_ready": 600000, "needs": [ "chunk_seg" ], "label": "tf_encode", "depth": 2 }, "position": { "x": 250, "y": 420 } }, { "id": "chunk_idx", "type": "pod", "data": { "uses": "pods/chunk.yml", "separated_workspace": true, "polling": "all", "uses_reducing": "_merge_all", "timeout_ready": 100000, "needs": [ "tf_encode" ], "label": "chunk_idx", "depth": 3 }, "position": { "x": 250, "y": 600 } }, { "id": "ranker", "type": "pod", "data": { "uses": "BiMatchRanker", "needs": [ "chunk_idx" ], "label": "ranker", "depth": 4 }, "position": { "x": 250, "y": 836 } }, { "id": "doc_idx", "type": "pod", "data": { "uses": "pods/doc.yml", "needs": [ "ranker" ], "label": "doc_idx", "depth": 5 }, "position": { "x": 249, "y": 985 } }, { "id": "e-gateway-to-chunk_seg", "source": "gateway", "target": "chunk_seg", "type": "step" }, { "id": "e-chunk_seg-to-tf_encode", "source": "chunk_seg", "target": "tf_encode", "type": "step" }, { "id": "e-tf_encode-to-chunk_idx", "source": "tf_encode", "target": "chunk_idx", "type": "step" }, { "id": "e-chunk_idx-to-ranker", "source": "chunk_idx", "target": "ranker", "type": "step" }, { "id": "e-ranker-to-doc_idx", "source": "ranker", "target": "doc_idx", "type": "step" }, { "id": "e-chunk_seg-to-gateway", "source": "chunk_seg", "target": "gateway", "type": "step" } ] } }, "mvyTfY8EUPAPq4zwi-L2_": { "isConnected": false, "name": "Custom Flow 3", "type": "user-generated", "flowChart": { "elements": [ { "id": "gateway", "type": "gateway", "data": { "name": "gateway", "label": "gateway" }, "position": { "x": 629, "y": 72 } }, { "id": "reader", "type": "pod", "data": { "label": "reader" }, "position": { "x": 629, "y": 229 } }, { "id": "e-reader-to-gateway", "source": "reader", "target": "gateway", "type": "step" }, { "id": "splittor", "type": "pod", "data": { "label": "splittor" }, "position": { "x": 742, "y": 377 } }, { "id": "e-splittor-to-reader", "source": "splittor", "target": "reader", "type": "step" }, { "id": "doc_indexer", "type": "pod", "data": { "label": "doc_indexer" }, "position": { "x": 721, "y": 522 } }, { "id": "e-doc_indexer-to-splittor", "source": "doc_indexer", "target": "splittor", "type": "step" } ] } } }

aga11313 commented 3 years ago

image

aga11313 commented 3 years ago

@BastinJafari not sure if this is a part of the same issue or if I should open a new issue for this