Skip to content

Failed to send compressed multipart ingest: Connection error caused failure to POST https://api.smith.langchain.com/runs/multipart in LangSmith API #1769

@erwan-png

Description

@erwan-png

Issue you'd like to raise.

I'm running into issues using Langsmith with LLM calls. It used to work a few months ago. I'm working with the Python Langchain and Langgraph, here's what I tried:

  • working with and without async mode
  • local (Ollama) and remote (Groq) LLMs
  • with and without a checkpointer

Every time there's an '(a)invoke' called on an LLM, I get the following Langsmith error message:
Failed to send compressed multipart ingest: Connection error caused failure to POST https://api.smith.langchain.com/runs/multipart in LangSmith API. Please confirm your internet connection. ConnectionError(MaxRetryError("HTTPSConnectionPool(host='api.smith.langchain.com', port=443): Max retries exceeded with url: /runs/multipart (Caused by ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))"))
Content-Length: None
API Key: lsv2
********************************************datrace= ....._

and the corresponding line in Langsmith dashboard remains in a "pending" state:

Image

All previous nodes of my Langgraph app that do not invoke an LLM are correctly registered in the corresponding Langsmith tracing project dashboard :

Image

The LLMs do generate a correct (non error) output, it's just the langsmith registration that is failing. All the settings above used to work a few months ago at least.

  • Langchain version: 0.3.25
  • Langsmith version: 0.3.42
  • Langgraph version: 0.4.7
    Python version: 3.12.3

I'd also like to add that, after investigation, my firewall didn't block these multipart requests. I am not using a VPN.

As precise before, the agent execution proceeds normally, it is just langsmith registration that holds.
On the same settings, with the same API key, on the same computer, network, etc., but for a different project B (different langgraph agent and different venv), langsmith registration works fine. After checking, on this other project, langsmith version used was 0.2.11 while it is 0.3.42 on the "failing project A". After upgrading langsmith version to the latest, project B also fails with the same error.

Suggestion:

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions