Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running from tile #1276

Open
apandura-tibco opened this issue Jan 22, 2020 · 0 comments
Open

Error while running from tile #1276

apandura-tibco opened this issue Jan 22, 2020 · 0 comments

Comments

@apandura-tibco
Copy link
Collaborator

apandura-tibco commented Jan 22, 2020

image

Steps to reproduce:

  1. Have a rest activity which has a GET request to "https://jsonplaceholder.typicode.com/todos"
  2. Run the whole flow and see for flow completion message
  3. Select the rest activity and open the debug panel
  4. Start the flow test runner from this tile.

You should see the above error message.

Reason / Additional information:
In this case, all the debug inputs of the activity are set to null. When we try to retest the flow from this tile, the payload for POST http://localhost:3303/api/v2/runner/processes/restart is :

initialState: {...}
interceptor: {
  tasks: [{
    id: "rest_2"
    inputs: {
      pathParams: null,
      queryParams: null,
      headers: null,
      content: null
    }
  }]
}

The step is failing with the provided intercepted input data.

I have noticed that we can fix this with the following payload to the restart call:

initialState: {...}
interceptor: {
  tasks: [{
    id: "rest_2"
    inputs: {}
  }]
}

So I think if we can exempt all null inputs (which is formed by the angular form), we can solve such issues.

But what if the user wants to provide a null value for debugging that step?

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

No branches or pull requests

1 participant