Skip to content

[BUG] Redis Backed Chat Memory Error - "Cannot read private member from an object whose class did not declare it" #614

@ezynda3

Description

@ezynda3

Describe the bug
When using Redis Backed Memory Store in a Conversational QA Retriever Chain I get the following error:

TypeError: Cannot read private member from an object whose class did not declare it
    at __classPrivateFieldGet (/usr/local/lib/node_modules/flowise/node_modules/@redis/client/dist/lib/client/index.js:4:94)
    at get isReady [as isReady] (/usr/local/lib/node_modules/flowise/node_modules/@redis/client/dist/lib/client/index.js:86:16)
    at RedisChatMessageHistory.ensureReadiness (/usr/local/lib/node_modules/flowise/node_modules/langchain/dist/stores/message/redis.cjs:48:26)
    at RedisChatMessageHistory.getMessages (/usr/local/lib/node_modules/flowise/node_modules/langchain/dist/stores/message/redis.cjs:54:20)
    at BufferMemory.loadMemoryVariables (/usr/local/lib/node_modules/flowise/node_modules/langchain/dist/memory/buffer_memory.cjs:40:49)
    at ConversationalRetrievalQAChain.call (/usr/local/lib/node_modules/flowise/node_modules/langchain/dist/chains/base.cjs:80:49)
    at ConversationalRetrievalQAChain_Chains.run (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/chains/ConversationalRetrievalQAChain/ConversationalRetrievalQAChain.js:161:37)
    at App.processPrediction (/usr/local/lib/node_modules/flowise/dist/index.js:723:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /usr/local/lib/node_modules/flowise/dist/index.js:427:13

To Reproduce
Steps to reproduce the behavior:

  1. Go to Marketplace and choose "Conversational Retrieval QA Chain".
  2. Click on 'Use Template'
  3. Add a Redis Backed Chat Memory and plug it into the memory slot of the "Conversational Retrieval QA Chain" card.
  4. Configure the redis card to point to a valid Redis instance.
  5. Save
  6. Run chat as normal and you will see an error.

Expected behavior
Chat should function normally without error.

Screenshots
image

Setup

  • Installation docker on Portainer instance
  • Flowise Version 1.2.16
  • OS: Linux
  • Browser Brave

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions