[GH-ISSUE #478] [langgraph-platform]: better docs for setting LS endpoint #47

Open
opened 2026-02-17 17:19:03 -05:00 by yindo · 2 comments
Owner

Originally created by @mlaug on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/478

URL

https://langchain-ai.github.io/langgraphjs/how-tos/deploy-self-hosted/#using-docker

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

Following the documentation by the letter results on spinning up the docker container in a

langgraph-api-1       | 2025-07-29T16:05:28.974689Z [warning  ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread
langgraph-api-1       | 2025-07-29T16:05:28.976655Z [error    ] Traceback (most recent call last):
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
langgraph-api-1       |     async with self.lifespan_context(app) as maybe_state:
langgraph-api-1       |   File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__
langgraph-api-1       |     return await anext(self.gen)
langgraph-api-1       |            ^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 58, in lifespan
langgraph-api-1       |     raise ValueError(
langgraph-api-1       | ValueError: License verification failed. Please ensure proper configuration:
langgraph-api-1       | - For local development, set a valid LANGSMITH_API_KEY for an account with LangGraph Cloud access in the environment defined in your langgraph.json file.
langgraph-api-1       | - For production, configure the LANGGRAPH_CLOUD_LICENSE_KEY environment variable with your LangGraph Cloud license key.
langgraph-api-1       | Review your configuration settings and try again. If issues persist, contact support for assistance.
langgraph-api-1       |  [uvicorn.error] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread
langgraph-api-1       | 2025-07-29T16:05:28.976867Z [error    ] Application startup failed. Exiting. [uvicorn.error] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread
langgraph-api-1 exited with code 3

I am on a EU instance, but adding

LANGSMITH_ENDPOINT: https://eu.api.smith.langchain.com/

is resulting in the same error

Idea or request for content:

No response

Originally created by @mlaug on GitHub (Jul 29, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/478 ### URL https://langchain-ai.github.io/langgraphjs/how-tos/deploy-self-hosted/#using-docker ### Checklist - [x] I added a very descriptive title to this issue. - [x] I included a link to the documentation page I am referring to (if applicable). ### Issue with current documentation: Following the documentation by the letter results on spinning up the docker container in a ``` langgraph-api-1 | 2025-07-29T16:05:28.974689Z [warning ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread langgraph-api-1 | 2025-07-29T16:05:28.976655Z [error ] Traceback (most recent call last): langgraph-api-1 | File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan langgraph-api-1 | async with self.lifespan_context(app) as maybe_state: langgraph-api-1 | File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__ langgraph-api-1 | return await anext(self.gen) langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^ langgraph-api-1 | File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 58, in lifespan langgraph-api-1 | raise ValueError( langgraph-api-1 | ValueError: License verification failed. Please ensure proper configuration: langgraph-api-1 | - For local development, set a valid LANGSMITH_API_KEY for an account with LangGraph Cloud access in the environment defined in your langgraph.json file. langgraph-api-1 | - For production, configure the LANGGRAPH_CLOUD_LICENSE_KEY environment variable with your LangGraph Cloud license key. langgraph-api-1 | Review your configuration settings and try again. If issues persist, contact support for assistance. langgraph-api-1 | [uvicorn.error] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread langgraph-api-1 | 2025-07-29T16:05:28.976867Z [error ] Application startup failed. Exiting. [uvicorn.error] api_revision=798ada1 api_variant=licensed langgraph_api_version=0.2.110 thread_name=MainThread langgraph-api-1 exited with code 3 ``` I am on a EU instance, but adding `LANGSMITH_ENDPOINT: https://eu.api.smith.langchain.com/` is resulting in the same error ### Idea or request for content: _No response_
yindo added the external label 2026-02-17 17:19:03 -05:00
Author
Owner

@mlaug commented on GitHub (Jul 30, 2025):

oh my god, it is the trailing / of the langsmith endpoint. It works for "dev" but not for "up" as the auth endpoint returns a 404, which is a bit hidden in a logging info message

langgraph-api-1 | 2025-07-30T16:07:04.940871Z [info ] HTTP Request: GET https://eu.api.smith.langchain.com//auth?langgraph-api=true "HTTP/1.1 404 Not Found" [httpx] api_revision=bdb5232 api_variant=licensed langgraph_api_version=0.2.111 thread_name=MainThread

Removing the trailing / solves this

@mlaug commented on GitHub (Jul 30, 2025): oh my god, it is the trailing / of the langsmith endpoint. It works for "dev" but not for "up" as the auth endpoint returns a 404, which is a bit hidden in a logging info message ```langgraph-api-1 | 2025-07-30T16:07:04.940871Z [info ] HTTP Request: GET https://eu.api.smith.langchain.com//auth?langgraph-api=true "HTTP/1.1 404 Not Found" [httpx] api_revision=bdb5232 api_variant=licensed langgraph_api_version=0.2.111 thread_name=MainThread``` Removing the trailing / solves this
Author
Owner

@elcapo commented on GitHub (Aug 21, 2025):

Same issue here. I tried both Langgraph versions (Python and JS) with the same result. In my case:

  1. I wasn't explicitly setting any endpoint but assuming that the default one would be used
  2. I was using LangGraph CLI, version 0.3.7
  3. Following @mlaug's advice, setting the endpoint without trailing / solved it
@elcapo commented on GitHub (Aug 21, 2025): Same issue here. I tried both Langgraph versions (Python and JS) with the same result. In my case: 1. I wasn't explicitly setting any endpoint but assuming that the default one would be used 2. I was using LangGraph CLI, version 0.3.7 3. Following @mlaug's advice, setting the endpoint without trailing / solved it
yindo changed title from [langgraph-platform]: better docs for setting LS endpoint to [GH-ISSUE #478] [langgraph-platform]: better docs for setting LS endpoint 2026-06-05 17:24:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#47