langchain-ai/langchain

Documented errors, page 3 of 4. Back to langchain-ai/langchain

Code / MessageTypeSeverityTags
Unable to import from langchain_text_splitters. Please…
exception error document-loader, dependency, import, text-splitting
Jinja2 templates are not allowed during deserialization for…
exception critical security, deserialization, jinja2, prompt-template
Could not import transformers python package. This is…
exception error dependencies, tokenizer, import-error
defusedxml is not installed. Please install it to use the…
exception error xml, dependencies, security, import-error
{exceptions joined with '\n\n'}
exception error tool-calling, json, output-parsing, aggregation
missing hostname
exception error ssrf, url-validation, misconfiguration
OpenAI Chat Completions does not support file URLs.
exception error openai, chat-completions, responses-api, file, url
Unrecognized content block at messages
exception error messages, content-blocks, vertexai, multimodal, validation
alternative_import must be a fully qualified module path…
exception error deprecation, langchain-core, api-misuse
Tracing using LangChainTracerV1 is no longer supported…
exception error tracing, langsmith, environment, migration
File is not open. Use FileCallbackHandler as a context…
exception error callbacks, file-io, context-manager, deprecation
Received both `client` and `client_kwargs`. Pass…
exception error langsmith, document-loader, constructor, validation
Cannot have same variable partialed twice.
exception error prompts, prompt-template, partial-variables, valueerror
Length of keys must match length of group_ids
exception error record-manager, validation, api-misuse
MESSAGE_COERCION_FAILURE
Unexpected message type
exception error message-coercion, roles, input-validation
DNS resolution returned no results
exception error ssrf, httpx, dns, async, edge-case
Prompt does not support saving.
exception error prompts, serialization, custom-class, core
RunnableBranch requires at least two branches
exception error runnable-branch, value-error, chain-composition, langchain-core
`score_threshold` is not specified with a float value(0~1)…
exception error retriever, vector-store, validation, configuration
config must be a list of the same length as inputs, but got
exception error config, batch, value-error, langchain-core
Expected a single list of messages. Got
exception error runnable, message-history, batch, input-validation, valueerror
Box dimensions should be > 1
exception error graph, ascii-rendering, dimensions, valueerror
Image URL not a data URI; appending as non-standard block.
exception error gemini, google-genai, image, content-blocks, data-uri
AsyncTextProjection requires a string delta
exception error streaming, async, typeerror, internal-api
Got unexpected message type
exception error serialization, deserialization, persistence
ToolMessage content should be a string or a list of…
exception error tool-message, validation, serialization, list-content
No global cache was configured. Use `set_llm_cache`.to set…
exception error cache, configuration, llm
Unable to dispatch an adhoc event without a parent run…
exception error callbacks, events, async, runtime-context
When specifying __root__ no other fields should be…
exception error pydantic, root-model, dynamic-model
Unsupported model version for PydanticOutputParser
exception error pydantic, output-parsing, type-mismatch
Tool arguments must be specified as a dict, received
exception error tool-calling, pydantic, validation, output-parsing
Install pygraphviz to draw graphs: `pip install pygraphviz`.
exception error graph, png, missing-dependency, importerror, pygraphviz, graphviz
No runnable associated with key
exception error router, lcel, dispatch, key-mismatch
RunnableBranch branches must be tuples or lists, not
exception error runnable-branch, type-error, chain-composition, langchain-core
The input to RunnablePassthrough.assign() must be a dict.
exception error lcel, runnable, passthrough-assign, type-mismatch, valueerror
Expected is_optional to be a boolean. Got
exception error prompts, messages-placeholder, type-validation
Input variables must be provided to validate the template.
exception error prompts, validation, input-variables, valueerror
Not enough points to draw an edge
exception error graph, ascii-rendering, layout, grandalf, valueerror
Did not find , please add an environment variable ` ` which…
exception error environment, secrets, configuration
Key base64 is required for audio blocks.
exception error openai, audio, base64, content-blocks
allowed_objects must contain Serializable subclasses.
exception error deserialization, allowlist, type-error, validation
Loading from the deprecated github-based Hub is no longer…
exception error prompts, hub, deprecation, migration, runtimeerror
Expected either a dictionary with a 'type' key or an object…
exception error serialization, message-dicts, type-discriminator
Message as a sequence must be (role string, template)
exception error message-coercion, tuples, input-validation
Path ' ' is absolute. Absolute paths are not allowed when…
exception error prompts, security, path-traversal, loading
Function arguments: are not valid JSON. Received…
exception error tool-calling, json, output-parsing, openai
One or more keys do not have a corresponding runnable
exception error router, batch, pre-validation, lcel
does not yet support get_by_ids.
exception error vector-store, abstract-method, retrieval
Unsupported cache value
exception error cache, input-validation, type-mismatch
`add_documents` and `add_texts` has not been implemented for
exception error vector-store, abstract-method, ingestion
Block of type is not supported.
exception error openai, content-blocks, type-dispatch, validation
Invalid file format. Only json or yaml formats are…
exception error prompts, loading, file-format, few-shot
mime_type key is required for base64 data.
exception error openai, image, base64, mime-type, content-blocks
Argument 'prompts' is expected to be of type list[str]…
exception error input-validation, llm, batch, type-mismatch
ToolMessage content should be a string or a list of…
exception error tool-message, validation, serialization, pydantic
Only one of 'examples' and 'example_selector' should be…
validation error prompts, few-shot, pydantic-validation
Too many arguments for tool decorator. A decorator
exception error langchain, tools, api-misuse, decorator
url must be a string.
exception error prompts, image, type-error, multimodal
Cannot save prompt with partial variables.
exception error prompts, serialization, partial-variables, core
Could not resolve content_key
exception error langsmith, document-loader, configuration, validation
maxsize must be greater than 0
exception error cache, validation, constructor, configuration
Failed to parse XML format from completion
exception error xml, output-parsing, model-behavior
Could not parse function call data
exception error openai-functions, output-parsing, json
Invalid draw method: . Supported draw methods are
exception error graph, mermaid, png, enum, valueerror
Must provide one of: url, base64, or file_id
exception error image, content-blocks, validation, constructor
Invalid input type . Must be a PromptValue, str, or list of…
exception error input-validation, llm, type-mismatch
No generations found in stream.
exception error streaming, empty-stream, validation
Unrecognized content block at messages
exception error openai, content-blocks, multimodal, images
Found run at ID , but expected run.
exception error langchain, tracing, callbacks, lifecycle
search_type of not allowed. Expected search_type to be…
exception error vector-store, validation, retrieval
Unrecognized content block at messages
exception error openai, content-blocks, multimodal, input-validation
Function must have either a docstring or description when…
exception error langchain, tools, docstring, validation
RunnableBranch default must be Runnable, callable or…
exception error runnable-branch, type-error, chain-composition, langchain-core
x should be >= 0 and < number of columns
exception warning graph, ascii-art, value-error, visualization, bounds-check, langchain-core
Must provide url.
exception error prompts, image, validation, multimodal
Unsupported source type. Only 'url' and 'base64' are…
exception error openai, image, content-blocks, validation
Install grandalf to draw graphs: `pip install grandalf`.
exception error graph, ascii-rendering, missing-dependency, importerror, grandalf
input_variables for the image template cannot contain any…
exception error prompts, image, multimodal, validation
Install the `requests` module to use the Mermaid.INK API…
exception error graph, mermaid, png, missing-dependency, importerror, requests
Unexpected message type
exception error prompts, chat-template, from-messages, roles
Expected invoke to return an AIMessage, but got
exception error fake-model, testing, messages, type-mismatch
AsyncTextProjection requires a string final value
exception error streaming, async, typeerror, internal-api
Keys base64, url, or file_id required for file blocks.
exception error openai, file, content-blocks, validation
' ' has been removed for security reasons. Usage of this…
exception error
No indexed run ID .
exception error langchain, tracing, callbacks, lifecycle
Unrecognized , expected one of 'string' or 'block'.
exception error openai, message-conversion, argument-validation
delete method must be implemented by subclass.
exception error vector-store, abstract-method, deletion
Function must have a docstring if description not provided.
exception error langchain, tools, docstring, structured-tool
Invalid examples format. Only list or string are supported.
exception error prompts, loading, config, few-shot, validation
Invalid token_counter shortcut
exception error trim-messages, token-counting, argument-validation
RunnableBranch branches must be tuples or lists of length…
exception error runnable-branch, value-error, chain-composition, langchain-core
'token_counter' expected to be a model that implements…
exception error trim-messages, token-counting, argument-validation
args_schema must be a subclass of pydantic BaseModel or a…
exception error tool, args-schema, validation, pydantic
Cannot concatenate ChatMessageChunks with different roles.
exception error messages, streaming, chunks, chat-message, concatenation
Cannot concatenate FunctionMessageChunks with different…
exception error messages, streaming, chunks, function-calling, legacy
IDs must be provided for deletion
exception error document-index, in-memory, validation
Source node not in graph
exception error graph, value-error, visualization, langchain-core
Unsupported message type
exception error prompts, from-messages, type-validation
Expected 2-tuple of (role, template), got
exception error prompts, from-messages, tuple-messages
Too many arguments to single-input tool
exception error langchain, tools, arguments, schema