1name: "\U0001F41B Bug Report"2description: Report a bug in LangChain. To report a security issue, please instead use the security option (below). For questions, please use the LangChain forum (below).3labels: ["bug"]4type: bug5body:6 - type: markdown7 attributes:8 value: |9 > **All contributions must be in English.** See the [language policy](https://docs.langchain.com/oss/python/contributing/overview#language-policy).1011 Thank you for taking the time to file a bug report.1213 For usage questions, feature requests and general design questions, please use the [LangChain Forum](https://forum.langchain.com/).1415 Check these before submitting to see if your issue has already been reported, fixed or if there's another way to solve your problem:1617 * [Documentation](https://docs.langchain.com/oss/python/langchain/overview),18 * [API Reference Documentation](https://reference.langchain.com/python/),19 * [LangChain ChatBot](https://chat.langchain.com/)20 * [GitHub search](https://github.com/langchain-ai/langchain),21 * [LangChain Forum](https://forum.langchain.com/),22 - type: checkboxes23 id: checks24 attributes:25 label: Submission checklist26 description: Please confirm and check all the following options.27 options:28 - label: This is a bug, not a usage question.29 required: true30 - label: I added a clear and descriptive title that summarizes this issue.31 required: true32 - label: I used the GitHub search to find a similar question and didn't find it.33 required: true34 - label: I am sure that this is a bug in LangChain rather than my code.35 required: true36 - label: The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).37 required: true38 - label: This is not related to the langchain-community package.39 required: true40 - label: I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.41 required: true42 - type: checkboxes43 id: package44 attributes:45 label: Package (Required)46 description: |47 Which `langchain` package(s) is this bug related to? Select at least one.4849 Note that if the package you are reporting for is not listed here, it is not in this repository (e.g. `langchain-google-genai` is in [`langchain-ai/langchain-google`](https://github.com/langchain-ai/langchain-google/)).5051 Please report issues for other packages to their respective repositories.52 options:53 - label: langchain54 - label: langchain-openai55 - label: langchain-anthropic56 - label: langchain-classic57 - label: langchain-core58 - label: langchain-model-profiles59 - label: langchain-tests60 - label: langchain-text-splitters61 - label: langchain-chroma62 - label: langchain-deepseek63 - label: langchain-exa64 - label: langchain-fireworks65 - label: langchain-groq66 - label: langchain-huggingface67 - label: langchain-mistralai68 - label: langchain-nomic69 - label: langchain-ollama70 - label: langchain-openrouter71 - label: langchain-perplexity72 - label: langchain-qdrant73 - label: langchain-xai74 - label: Other / not sure / general75 - type: textarea76 id: related77 validations:78 required: false79 attributes:80 label: Related Issues / PRs81 description: |82 If this bug is related to any existing issues or pull requests, please link them here.83 placeholder: |84 * e.g. #123, #45685 - type: textarea86 id: reproduction87 validations:88 required: true89 attributes:90 label: Reproduction Steps / Example Code (Python)91 description: |92 Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.9394 If a maintainer can copy it, run it, and see it right away, there's a much higher chance that you'll be able to get help.9596 **Important!**9798 * Avoid screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.99 * Reduce your code to the minimum required to reproduce the issue if possible.100101 (This will be automatically formatted into code, so no need for backticks.)102 render: python103 placeholder: |104 from langchain_core.runnables import RunnableLambda105106 def bad_code(inputs) -> int:107 raise NotImplementedError('For demo purpose')108109 chain = RunnableLambda(bad_code)110 chain.invoke('Hello!')111 - type: textarea112 attributes:113 label: Error Message and Stack Trace (if applicable)114 description: |115 If you are reporting an error, please copy and paste the full error message and116 stack trace.117 (This will be automatically formatted into code, so no need for backticks.)118 render: shell119 - type: textarea120 id: description121 attributes:122 label: Description123 description: |124 What is the problem, question, or error?125126 Write a short description telling what you are doing, what you expect to happen, and what is currently happening.127 placeholder: |128 * I'm trying to use the `langchain` library to do X.129 * I expect to see Y.130 * Instead, it does Z.131 validations:132 required: true133 - type: textarea134 id: system-info135 attributes:136 label: System Info137 description: |138 Please share your system info with us.139140 Run the following command in your terminal and paste the output here:141142 `python -m langchain_core.sys_info`143144 or if you have an existing python interpreter running:145146 ```python147 from langchain_core import sys_info148 sys_info.print_sys_info()149 ```150 placeholder: |151 python -m langchain_core.sys_info152 validations:153 required: true
Findings
✓ No findings reported for this file.