Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Cannot create property 'chatHistory' on string '' [BUG]

Open ms6rb opened this issue 1 year ago • 2 comments

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 image

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

ms6rb avatar Jun 10 '23 22:06 ms6rb

connect Memory of ConversationalAgent to a memory node like BufferMemory

HenryHengZJ avatar Jun 11 '23 00:06 HenryHengZJ

connect Memory of ConversationalAgent to a memory node like BufferMemory

well, idk what is this image

{{
    "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)

ms6rb avatar Jun 11 '23 18:06 ms6rb

I'm having the same issue

eitanwaxman avatar Jul 27 '23 19:07 eitanwaxman

Hi @eitanwaxman,

could you share a screenshot of your flow?

chungyau97 avatar Jul 28 '23 13:07 chungyau97

@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!

eitanwaxman avatar Jul 28 '23 17:07 eitanwaxman