Flowise
Flowise copied to clipboard
Cannot create property 'chatHistory' on string '' [BUG]
Describe the bug
I'm getting this error Cannot create property 'chatHistory' on string ''
in the chat on a fresh install.
To Reproduce
Steps to reproduce the behavior:
1- Install
2- Add OpenAI agent and MRKL agent for LLMs (any agent actually)
3- Chat with the bot
4- See error in the chat Cannot create property 'chatHistory' on string ''
5- See error in the browser console:
xhr.js:220
POST http://localhost:3000/api/v1/internal-prediction/7e589d54-11e0-4ee0-b0c1-7a598c885163 500 (Internal Server Error)
Expected behavior I expected to get a response from the bot.
Screenshots
Setup
- Browser: Microsoft Edge Version 114.0.1823.41 (Official build) (64-bit)
- OS: Windows 11
- Node v19.9.0
- npx\npm 9.6.5
connect Memory
of ConversationalAgent to a memory node like BufferMemory
connect
Memory
of ConversationalAgent to a memory node likeBufferMemory
well, idk what is this
{{
"action": string, // The action to take. Must be one of []
"action_input": string // The input to the action. May be a stringified object.
}}
```". Error: SyntaxError: Expected property name or '}' in JSON at position 1
console:
:3000/api/v1/internal-prediction/7e589d54-11e0-4ee0-b0c1-7a598c885163:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
I'm having the same issue
Hi @eitanwaxman,
could you share a screenshot of your flow?
@chungyau97 My flow looked exactly like the one above. I did find an answer on the discord - apparently you need to use a Chat LLM Model with a Chat agent. (I was trying to use a regular one). - Now it's working
Thanks!