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

[🐛 Bug]: Cannot read properties of undefined (reading 'workflow_raw') on a test run #2990

Closed
Kiryous opened this issue Jan 6, 2025 · 1 comment · Fixed by #2993
Closed
Labels
Bug Something isn't working

Comments

@Kiryous
Copy link
Contributor

Kiryous commented Jan 6, 2025

Describe the bug

To Reproduce

  1. Open workflow builder
  2. Click on 'Run'
  3. See error

Expected behavior
See test execution result

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2025-01-06 at 18 48 21

Additional context
ExecutionResults component is not supplied with workflow data in the BuilderWorkflowTestRunModalContent

Copy link

dosubot bot commented Jan 6, 2025

The error "Cannot read properties of undefined (reading 'workflow_raw')" occurs because the workflowData object is expected to have a workflow_raw property, but it is undefined at the time of access. To resolve this issue, ensure that the workflowData is correctly fetched and passed to the ExecutionResults component in the BuilderWorkflowTestRunModalContent.

Here are some steps to check:

  1. API Endpoint: Verify that the API endpoint /workflows/${workflow_id} is returning the expected data structure, including the workflow_raw property. This property should be part of the response [1].

  2. API Readiness: Ensure that the api.isReady() condition is met, which allows the API call to be made. This condition checks if the API is ready and if the timeframe does not exceed 14 days [2].

  3. Data Availability: Before rendering the ExecutionResults component, make sure that workflowData is not null or undefined. This can be done by adding a conditional check to ensure that the component only renders when workflowData is available.

By addressing these points, you should be able to supply the ExecutionResults component with the necessary workflow data and avoid the error.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the Bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant