Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/langchain-common-errors

@0d57af8
Run it yourself

Paste-match catalog of 14 real LangChain 1.0 / LangGraph 1.0 exceptions with named causes and named fixes, plus a triage decision tree. Use when you have a traceback and want the specific fix, not speculative documentation. Covers ImportError (0.2/0.3 → 1.0 migration), AttributeError on AIMessage.content, KeyError in LCEL and prompts, GraphRecursionError, silent thread_id memory loss, JSON-serialization crashes, and graphs that halt without reaching END. Trigger with "langchain error", "langgraph traceback", "OutputParserException", "GraphRecursionError", "ImportError langchain", "AttributeError AIMessage content".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/langchain-common-errors

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesone-pager.md

≈665 tokens on demand. Your agent reads this file only when SKILL.md points to it.

langchain-common-errors — One-Pager

Paste-match catalog of real LangChain 1.0 / LangGraph 1.0 tracebacks — find the named cause and the named fix before you speculate.

The Problem

Twelve-plus LangChain 1.0 and LangGraph 1.0 exceptions show up every week in production: ImportError: cannot import name 'ChatOpenAI' from 'langchain.chat_models', AttributeError: 'list' object has no attribute 'lower', GraphRecursionError: Recursion limit of 25 reached, TypeError: Object of type datetime is not JSON serializable, KeyError: 'question' deep in LCEL internals, and more. Stack traces are ambiguous, docs sprawl across 0.2/0.3/1.0 eras, and engineers lose 30–90 minutes per incident re-deriving the fix each time.

The Solution

This skill is a consolidated index of 14 LangChain 1.0 / LangGraph 1.0 errors grouped into 5 categories (imports, content-shape, chains, agents, graphs), with a triage decision tree that routes any paste-in traceback to the right reference file. Each catalog entry opens with the exact error message string, names the cause in one sentence with a pain-catalog code (P02, P06, P09, P10, P16, P17, P38, P39, P40, P41, P42, P55, P56, P57, P66), and gives a one-line fix plus a reference-file pointer for the deep walk-through.

Who / What / When

Aspect Details
Who Any Python engineer holding a LangChain 1.0 or LangGraph 1.0 traceback and looking for a named fix — not more speculative documentation
What 14-entry paste-match catalog, triage decision tree, 4 deep reference files (import-migration, content-shape, graph-traps, triage-decision-tree), and 2 worked walk-throughs (0.2 → 1.0 import migration and GraphRecursionError triage)
When During incident response, on a 0.3 → 1.0 upgrade when tests explode, or any time a stack trace mentions langchain_, langgraph, OutputParserException, GraphRecursionError, AIMessage, or ChatPromptTemplate

Key Features

  1. Exact-match catalog — Every entry opens with the literal exception class and message string you see in your terminal, so Ctrl-F on the traceback lands on the fix in under 10 seconds
  2. Triage decision tree — Routes any traceback by first line (ImportError → import-migration, AttributeError on .content → content-shape, GraphRecursionError → graph-traps) so you never read the whole catalog
  3. Pain-catalog anchored — Every error cites a P## code from docs/pain-catalog.md, verifiable against LangChain 1.0.x and LangGraph 1.0.x pinned versions (2026-04-21)

Quick Start

See SKILL.md for full instructions.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a technical reference guide for troubleshooting common LangChain and LangGraph errors. It provides cataloged fixes for various exceptions and migration issues encountered in LangChain 1.0 environments. No security risks were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files
version
2.7.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 2 allowed tools
ReadGrep
Other metadata
tags
[
  "saas",
  "langchain",
  "langgraph",
  "python",
  "langchain-1.0",
  "errors",
  "troubleshooting",
  "debugging"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/langchain-common-errors