mirror of
https://github.com/langchain-ai/langgraphjs.git
synced 2026-07-25 21:26:05 -04:00
fix(cli): only warn the user if an invalid LangSmith API key is passed while tracing is enabled (#1463)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@langchain/langgraph-api": patch
|
||||
---
|
||||
|
||||
fix(cli): only warn the user if an invalid LangSmith API key is passed while tracing is enabled
|
||||
@@ -31,9 +31,12 @@ const [{ host, cleanup }, organizationId] = await Promise.all([
|
||||
if (isTracingEnabled()) {
|
||||
try {
|
||||
// @ts-expect-error Private method
|
||||
return new LangSmithClient()._getTenantId();
|
||||
return await new LangSmithClient()._getTenantId();
|
||||
} catch (error) {
|
||||
logger.warn("Failed to get organization ID", { error });
|
||||
logger.warn(
|
||||
"Failed to get organization ID. Tracing to LangSmith will not work.",
|
||||
{ error }
|
||||
);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user