Open castorinop opened 1 month ago
I have the same issue.
Yes, that happens because the LLM is actually not giving any output. If you turn on the analytic using langsmith/langfuse or others, you will see that.
You will need to use a "smarter" model
Thanks @HenryHengZJ
Re: Smarter Model I am currently getting this this using 4o, and I will need to verify, but I feel like I also saw it it with Sonnet 3.5 as well (don't quote me).
One thing to add, is that the state of the message window breaks when this happens as well. If you close and reopen it after this issue the messages generated before the failure disappear and you may need to clear the chat several times to get it to render and act properly.
I'm getting the same error and it seems to work sometimes and sometimes it fails. I'm using ChatGoogleGenerativeAI in my flow. Error: predictionsServices.buildChatflow - Cannot read properties of undefined (reading 'length')
Also getting this out of nowhere, using Prompt Engineering Team running on Groq - Llama 3.1 70b - not had an issue with it until now. It was working fine.
Error: predictionsServices.buildChatflow - Cannot read properties of undefined (reading 'length')
Update GPT 4o does indeed throw out this error but then still continues with the request, and produces one empty Agent Messages bubble, and one completed agent message bubble, not sure if that helps locate the bug? @HenryHengZJ
I have the same issue and would appreciate a solution
Tried many models, have the same issue with all of them at this point.
I also have the same issue, was looking for a solution.
I made the necessary adjustments by removing all special characters, indentations, and single quotes from the supervisor and worker node prompt text. After these updates, it seems to be working fine on my end, but I'm not sure—maybe it will work for you as well.
@xor83 Great! Thanks for the update, I will try this. But @HenryHengZJ this seems to be a widespread problem. For me the problem got worse to the point where every chat model, smarter or not, now returns this error in Sequential Agents / Agentflows
This does not seem to be getting picked up but is a major bug, effecting many users. Maybe we all make a separate post on this it will be picked up?
I think to solve this problem, what we can do is to add a retry mechanism or a fallback failed message. Because the underlying issue is that LLM does not give any output, hence causing the error.
If the LLM is the issue by not generating output, how do I understand what it's being asked to do and what is being returned?
Same here. Nothing works. All I get is "Cannot read properties of undefined (reading 'length')"
Did somebody make ANY progress on this?
@HenryHengZJ
I am having the same error, but still working (locally and cloud)
If it helps this is what shows in Langsmith:
metadata: {}
runtime library: "langchain-js"
RENDER_GIT_COMMIT: "8bb55e07b63d12407fccf66dd04e83bf7d72e67c"
runtime: "node"
sdk: "langsmith-js"
sdk_version: "0.1.6"
Run:
Aborted!
Error: Aborted! at agentNode (/usr/src/packages/components/dist/nodes/multiagents/Supervisor/Supervisor.js:614:15) at async RunnableLambda.supervisorNode [as func] (/usr/src/packages/components/dist/nodes/multiagents/Supervisor/Supervisor.js:582:57) at async /usr/src/node_modules/.pnpm/@langchain+core@0.2.18langchain@0.2.11@aws-sdk+client-s3@3.529.1_@aws-sdk+credential-provid_7neqxdzwpbrflib37usagtazcm/node_modules/@langchain/core/dist/runnables/base.cjs:1513:34
I'm having the same issue, new to flowise and really can't help but from what I've read here it seems to be affecting alot of people
Completely new to Flowise. Was keen to try it for the multi-agent function, but unfortunately, running into this same issue.
If the LLM is the issue by not generating output, how do I understand what it's being asked to do and what is being returned?
you can turn on the the analytics for that. if anyone can send me an analytic trace link that would be great. Perhaps @nextgen101 if you have one
Describe the bug I follow a video demo that how create a Software development team with agents.
To Reproduce Steps to reproduce the behavior:
import Software Development Team Agents.json
run chat
ask "Build a To Do list app"
chat:
AI
Hi there! How can I help? Me
build a to do list app AI agentPNG Supervisor
Build a to-do list app agentPNG Product Designer
To-Do List App Design Requirements
Overview
The To-Do List App is a mobile and web application designed to help users manage their tasks and increase productivity. The app will allow users to create, organize, and prioritize their to-do lists, set reminders, and track their progress.
Core Features
User Interface
Technical Requirements
Mockup
Here's a rough mockup of the To-Do List App UI:
Home Screen
Task Detail Screen
Settings Screen
Next Steps
This design meets the core requirements for the To-Do List App. The next steps involve developing the UI components and implementing the core features. agentPNG Supervisor
Design the UI for the To-Do List App agentPNG Product Designer
Next Steps: Design Development
Based on the design requirements, I will focus on developing the UI components and implementing the core features.
Task Management Component
I will design a reusable Task Management component that includes:
jsx
// TaskManagement.js import React from 'react'; import { Feather } from 'react-feather';
const TaskManagement = ({ task, onEdit, onDelete }) => { return (
{task.name}
{task.description}
); };
export default TaskManagement;
Task List Component
I will design a Task List component that includes:
jsx
// TaskList.js import React from 'react'; import { Feather } from 'react-feather';
const TaskList = ({ tasks, onToggle, onFilter }) => { return (
Task List
{tasks.map((task, index) => (-
console.log('Edit task')}
onDelete={() => console.log('Delete task')}
/>
))}
); };
export default TaskList;
Settings Component
I will design a Settings component that includes:
jsx
// Settings.js import React from 'react'; import { Feather } from 'react-feather';
const Settings = () => { return (
Settings
); };
export default Settings;
Home Component
I will design a Home component that includes:
jsx
// Home.js import React from 'react'; import { Feather } from 'react-feather'; import TaskList from './TaskList';
const Home = () => { return (
Home
); };
export default Home;
This is a basic implementation of the UI components and core features of the To-Do List App. The next steps involve integrating the components, implementing the backend API, and conducting user testing.
AI
Cannot read properties of undefined (reading 'length')
flowise-1 | 2024-07-28 19:55:31 [INFO]: ⬆️ POST /api/v1/internal-prediction/2fd02c0e-d0ed-42cb-b0c8-742b26329a90 flowise-1 | 2024-07-28 19:55:31 [INFO]: [server]: Chatflow 2fd02c0e-d0ed-42cb-b0c8-742b26329a90_38348c3b-1073-4cdb-84c3-cdf2de3526cd added into ChatflowPool flowise-1 | 2024-07-28 19:55:38 [ERROR]: [server]: Error: Cannot read properties of undefined (reading 'length') flowise-1 | TypeError: Cannot read properties of undefined (reading 'length') flowise-1 | at utilBuildAgentResponse (/usr/src/packages/server/dist/utils/buildChatflow.js:388:33) flowise-1 | at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:159:20) flowise-1 | at async createInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:7:29) flowise-1 | 2024-07-28 19:55:38 [ERROR]: [server]: Error: Cannot read properties of undefined (reading 'length') flowise-1 | Error: Cannot read properties of undefined (reading 'length') flowise-1 | at utilBuildAgentResponse (/usr/src/packages/server/dist/utils/buildChatflow.js:451:15) flowise-1 | at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:159:20) flowise-1 | at async createInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:7:29)