Skip to content

Try to run the simplest rules at https://editor.gorules.io/, but get "Unexpected Application Error!" #24

Description

@alec-liu

Step 1: new graph as JSON below

{
  "contentType": "application/vnd.gorules.decision",
  "nodes": [
    {
      "type": "inputNode",
      "id": "e10b25ef-6b4f-415b-a652-14d52b9202c5",
      "name": "request",
      "position": {
        "x": 520,
        "y": 130
      }
    },
    {
      "type": "outputNode",
      "id": "fa9c1488-4ce5-47e2-959b-89e515ba6273",
      "name": "response",
      "position": {
        "x": 960,
        "y": 120
      }
    }
  ],
  "edges": [
    {
      "id": "35e268ac-09d7-4879-863a-61d21515207c",
      "sourceId": "e10b25ef-6b4f-415b-a652-14d52b9202c5",
      "type": "edge",
      "targetId": "fa9c1488-4ce5-47e2-959b-89e515ba6273"
    }
  ]
}%

Step 2: try to run the Simulator with {key:"yes"}

Then it shows:

Unexpected Application Error!
r.walk(...).forEach is not a function
TypeError: r.walk(...).forEach is not a function
    at https://editor.gorules.io/assets/index-DpMM05Ik.js:6672:26657
    at produce (https://editor.gorules.io/assets/index-DpMM05Ik.js:2003:19920)
    at LIn (https://editor.gorules.io/assets/index-DpMM05Ik.js:6672:26638)
    at https://editor.gorules.io/assets/index-DpMM05Ik.js:6672:26176
    at https://editor.gorules.io/assets/index-DpMM05Ik.js:2003:21931
    at Set.forEach (<anonymous>)
    at Function.i [as setState] (https://editor.gorules.io/assets/index-DpMM05Ik.js:2003:21920)
    at https://editor.gorules.io/assets/index-DpMM05Ik.js:6672:26006
    at https://editor.gorules.io/assets/index-DpMM05Ik.js:2003:21931
    at Set.forEach (<anonymous>)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions