langflow-ai / langflow

⛓️ Langflow is a visual framework for building multi-agent and RAG applications. It's open-source, Python-powered, fully customizable, LLM and vector store agnostic.

Home Page:http://www.langflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'function' object has no attribute 'split'

xsser opened this issue · comments

Describe the Bug
During the attempt to build a node named GitLoader, the program threw a ValueError. The specific error message was: 'function' object has no attribute 'split'. This suggests that there might be an incorrect attempt in the code to call the split method on a function object, whereas split is typically a method used with strings.

Browser and Version

Browser: Firefox
Version: 124.0.2 64-bit

Steps to Reproduce

Create a plugin named "github reader" in the interface.
In the plugin configuration, add a node configuration including the use of LLMChain, PromptTemplate, CharacterTextSplitter, ConversationBufferMemory, and PostgresChatMessageHistory.
Attempt to save or execute the configuration.
Observe a ValueError reported in the system logs with a red error prompt.

Screenshots

图片

Additional Context

The error occurred during the node build process, particularly involving the GitLoader. Possible reasons include incorrect calls to object attributes or some variables expected to be strings being incorrectly passed as functions.