Skip to content

Conversation

@px-amaac
Copy link
Contributor

@px-amaac px-amaac commented Nov 27, 2024

Simple Flow: Follow part of video on sequential flows until 9:15 where LLM Node setup is complete and connected to an end node.
https://www.youtube.com/watch?v=3ZmBq8_4vCs&list=PL4HikwTaYE0H7wBxhvQqxYcKOkZ4O3zXh

Stacktrace:
Error: Cannot read properties of undefined (reading 'label') flowise:dev: at buildAgentGraph (\Flowise\packages\server\dist\utils\buildAgentGraph.js:402:19) flowise:dev: at async utilBuildAgentResponse (\Flowise\packages\server\dist\utils\buildChatflow.js:435:31) flowise:dev: at async utilBuildChatflow (\Flowise\packages\server\dist\utils\buildChatflow.js:198:20) flowise:dev: at async createAndStreamInternalPrediction (\Flowise\packages\server\dist\controllers\internal-predictions\index.js:33:29) flowise:dev: 2024-11-26 13:50:21 [ERROR]: [server]: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label') flowise:dev: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label') flowise:dev: at buildAgentGraph (\Flowise\packages\server\dist\utils\buildAgentGraph.js:408:15) flowise:dev: at async utilBuildAgentResponse (\Flowise\packages\server\dist\utils\buildChatflow.js:435:31) flowise:dev: at async utilBuildChatflow (\Flowise\packages\server\dist\utils\buildChatflow.js:198:20) flowise:dev: at async createAndStreamInternalPrediction (\Flowise\packages\server\dist\controllers\internal-predictions\index.js:33:29) flowise:dev: 2024-11-26 13:50:21 [ERROR]: [server]: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label') flowise:dev: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label') flowise:dev: at utilBuildAgentResponse (\Flowise\packages\server\dist\utils\buildChatflow.js:541:15) flowise:dev: at async utilBuildChatflow (\Flowise\packages\server\dist\utils\buildChatflow.js:198:20) flowise:dev: at async createAndStreamInternalPrediction (\Flowise\packages\server\dist\controllers\internal-predictions\index.js:33:29)

Commit adds some optional chaining around 2 reads of 'label' property.

Without this change some usage of sequential agents requires a memory node to not hit a runtime error when trying to access 'label'.

Commit adds some optional chaining around 2 reads of 'label'
property.
@HenryHengZJ
Copy link
Contributor

thank you!

@HenryHengZJ HenryHengZJ merged commit 126808b into FlowiseAI:main Nov 27, 2024
2 checks passed
Yshayy pushed a commit to Yshayy/Flowise that referenced this pull request Apr 23, 2025
Fix 'label' undefined errors

Commit adds some optional chaining around 2 reads of 'label'
property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants