-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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]Error buildAgentGraph - Cannot read properties of undefined (reading 'name') #3939
Comments
For what it is worth, after receiving no reply I decided to dust off my inexistent node.js skills , and with the help of chatgpt and deepseek resolved multiple issues. This primary fix involved this:
and
and
and
FWIW. use at your own risk and peril. It fixed all my issues (so far) But more may follow. I've attached my modified buildAgentGraph.js file as a text file since it won't allow uploading of js files. I hope it can help others. Make sure you backup existing one before deploying this. Here's how I made this not be overwritten every time new version of flowise is fetched: Start the container (if not already running)docker run -dit --name temp-flowise my-modified-flowise sleep infinity Copy the modified file from the subdirectorydocker cp ./flowise_overrides/buildAgentGraph.js temp-flowise:/usr/local/lib/node_modules/flowise/dist/utils/buildAgentGraph.js and FIRST make change to your docker-compose.yml file to point to new Hopefully future versions of flowise will correct these bugs and I can remove this statement from my docker-compose.yml file. |
Describe the bug
This flow is not running I am using Leons video to build a sequential agent
To Reproduce
Load the below json file to observe the flow
test_sequential_2 Agents.json
2025-01-29 00:49:58 [INFO]: Starting Flowise...
2025-01-29 00:49:58 [INFO]: 📦 [server]: Data Source is initializing...
2025-01-29 00:50:10 [INFO]: 📦 [server]: Data Source has been initialized!
2025-01-29 00:50:10 [INFO]: ⚡️ [server]: Flowise Server is listening at :3000
2025-01-29 00:50:48 [INFO]: ⬆️ POST /api/v1/node-load-method/chatOpenAI
2025-01-29 00:51:21 [INFO]: ⬆️ POST /api/v1/internal-prediction/db363059-f2a0-477c-85fc-5d7bb8f276b4
2025-01-29 00:51:21 [ERROR]: [server]: Error: Cannot read properties of undefined (reading 'name')
TypeError: Cannot read properties of undefined (reading 'name')
at buildAgentGraph (/usr/local/lib/node_modules/flowise/dist/utils/buildAgentGraph.js:142:90)
at async utilBuildAgentResponse (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:443:31)
at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:196:20)
at async createAndStreamInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:33:29)
Expected behavior
The agent node should use the serp_api to fetch relative info about a given topic and produce a concise post about the topic.
Screenshots
See attached image
Flow
Has been added in attached files
Setup
Additional context
I looked to another person who had similar problem but solution offered there not useful:
#3772
This flow has not yet incorporated "loopto" node so answer not relevant.
The text was updated successfully, but these errors were encountered: