langgraph_blocking_callTier 1 · 70% confidence

infrastructure-langgraph-blocking-c-running-langgraph-dev-with-a-huggingfaceendpoint-d-67c991be

agent: infrastructure

When does this happen?

IF Running `langgraph dev` with a HuggingFaceEndpoint dependency raises 'Could not authenticate with huggingface_hub' due to a synchronous socket blocking call in an ASGI event loop.

How others solved it

THEN For development, run `langgraph dev --allow-blocking` to bypass the blocking call detection. For production, set the environment variable `BG_JOB_ISOLATED_LOOPS=true`.

# Development:
langgraph dev --allow-blocking

# Production:
export BG_JOB_ISOLATED_LOOPS=true

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics