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] workflow failing with cant read property of undefined: label #3597

Closed
matiashegoburu opened this issue Nov 28, 2024 · 3 comments
Closed

Comments

@matiashegoburu
Copy link

Describe the bug
When i run the attached agent flow, i get this error in the logs:

2024-11-22 18:39:47 [ERROR]: [server]: Error: Cannot read properties of undefined (reading 'label')
Error: Cannot read properties of undefined (reading 'label')
at buildAgentGraph (/usr/src/packages/server/dist/utils/buildAgentGraph.js:399:19)
at async utilBuildAgentResponse (/usr/src/packages/server/dist/utils/buildChatflow.js:428:31)
at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:195:20)
at async createAndStreamInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:
33:29)
2024-11-22 18:39:47 [ERROR]: [server]: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label')
Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label')
at buildAgentGraph (/usr/src/packages/server/dist/utils/buildAgentGraph.js:405:15)
at async utilBuildAgentResponse (/usr/src/packages/server/dist/utils/buildChatflow.js:428:31)
at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:195:20)
at async createAndStreamInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:
33:29)
2024-11-22 18:39:47 [ERROR]: [server]: Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label')
Error: Error buildAgentGraph - Cannot read properties of undefined (reading 'label')
at utilBuildAgentResponse (/usr/src/packages/server/dist/utils/buildChatflow.js:534:15)
at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:195:20)
at async createAndStreamInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:33:29)

To Reproduce
see attached agent flow
title writer Agents.json

Setup
docker, flowise 2.1.5, os ubuntu 24.04

Additional context
Add any other context about the problem here.

@pooxid
Copy link

pooxid commented Dec 1, 2024

I have similar issue if not the same, I may be wrong but it seems something is wrong with the State. I tried with Gemini Flash in addition to ollama qwen2.5-coder:32b and its the same.

@SirLucian
Copy link

I think this is to do with override variables. You now have to configure them in your global variables, you can't just declare them on the fly. so I add a couple empty objects for things I want to declare in api calls and then in my chatflow config I can toggle them to allow for overwriting

@HenryHengZJ
Copy link
Contributor

fix: #3585

should be released in next version

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

No branches or pull requests

4 participants