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 60 forks source link

Flow canvas errors on open #250

Closed aga11313 closed 3 years ago

aga11313 commented 3 years ago

Describe the bug

After going straight to the Flow Canvas I was presented with the 'Cannot read property 'flowChart' of undefined' error. The error does not go away after refreshing the page.

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


Environment

Screenshots and logs

image

aga11313 commented 3 years ago

Contents of the Local storage, userFlows object

{
    "5ytzJSuTgRF7wA_nTXcXs": {
        "isConnected": false,
        "name": "Custom Flow 3",
        "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": 187
                    }
                },
                {
                    "id": "chunk_seg",
                    "type": "pod",
                    "data": {
                        "uses": "pods/craft.yml",
                        "parallel": "$PARALLEL",
                        "needs": [
                            "gateway"
                        ],
                        "label": "chunk_seg",
                        "depth": 1
                    },
                    "position": {
                        "x": 250,
                        "y": 289
                    }
                },
                {
                    "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": 383
                    }
                },
                {
                    "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": 492
                    }
                },
                {
                    "id": "ranker",
                    "type": "pod",
                    "data": {
                        "uses": "BiMatchRanker",
                        "needs": [
                            "chunk_idx"
                        ],
                        "label": "ranker",
                        "depth": 4
                    },
                    "position": {
                        "x": 250,
                        "y": 583
                    }
                },
                {
                    "id": "doc_idx",
                    "type": "pod",
                    "data": {
                        "uses": "pods/doc.yml",
                        "needs": [
                            "ranker"
                        ],
                        "label": "doc_idx",
                        "depth": 5
                    },
                    "position": {
                        "x": 250,
                        "y": 685
                    }
                },
                {
                    "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"
                },
                {
                    "id": "e-chunk_seg-to-gateway",
                    "source": "chunk_seg",
                    "target": "gateway",
                    "type": "step"
                },
                {
                    "id": "e-chunk_seg-to-gateway",
                    "source": "chunk_seg",
                    "target": "gateway",
                    "type": "step"
                },
                {
                    "id": "e-chunk_seg-to-gateway",
                    "source": "chunk_seg",
                    "target": "gateway",
                    "type": "step"
                },
                {
                    "id": "e-tf_encode-to-chunk_seg",
                    "source": "tf_encode",
                    "target": "chunk_seg",
                    "type": "step"
                }
            ]
        }
    }
}
jina-bot commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days