local-deep-researcher icon indicating copy to clipboard operation
local-deep-researcher copied to clipboard

Failed to load assistants

Open Baltsat opened this issue 9 months ago • 16 comments

When installing the repo and starting the UI service at https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 gives an error:

Failed to load assistants Please verify if the API server is running or accessible from the browser. TypeError: Load failed

Image

The documentation endpoint methods work however at http://127.0.0.1:2024/docs

Image

Terminal logs are also OK:

Image

How to fix this?

Baltsat avatar Feb 25 '25 09:02 Baltsat

Ollama is running smoothly and I have the following .env file:

OLLAMA_BASE_URL='http://localhost:11434'                # the endpoint of the Ollama service, defaults to http://localhost:11434 if not set
OLLAMA_MODEL='deepseek-r1:8b'                   # the name of the model to use, defaults to 'llama3.2' if not set

# Which search service to use, either 'duckduckgo' or 'tavily' or 'perplexity'
SEARCH_API='duckduckgo'
# Web Search API Keys (choose one or both)
TAVILY_API_KEY=tvly-xxxxx      # Get your key at https://tavily.com
PERPLEXITY_API_KEY=pplx-xxxxx  # Get your key at https://www.perplexity.ai

MAX_WEB_RESEARCH_LOOPS=3
FETCH_FULL_PAGE=true

Baltsat avatar Feb 25 '25 09:02 Baltsat

Image

I have the error too,use grok3 have this: 404 错误
GET /assistants/081587fc-586a-4ce3-8bed-9b97031bb8ad/schemas 多次返回 404 Not Found: 2025-02-26T07:43:04.930926Z [info] GET /assistants/081587fc-586a-4ce3-8bed-9b97031bb8ad/schemas 404 0ms 2025-02-26T07:43:06.171427Z [info] GET /assistants/081587fc-586a-4ce3-8bed-9b97031bb8ad/schemas 404 0ms 请求头显示来源是 https://smith.langchain.com,表明这是 LangSmith Studio UI 发出的请求,带有 x-auth-scheme: langsmith。

a1095753788 avatar Feb 26 '25 08:02 a1095753788

Adding @dqbd and @lc-arjun.

rlancemartin avatar Feb 26 '25 22:02 rlancemartin

@a1095753788 the error you mentioned is unrelated and should be resolved now

lc-arjun avatar Feb 26 '25 23:02 lc-arjun

The same problem

Image

Image

zonrghua88 avatar Feb 27 '25 09:02 zonrghua88

Same here.

nicolasembleton avatar Feb 27 '25 15:02 nicolasembleton

try the disabling adblock or security extensions

FurkanGulabi avatar Mar 14 '25 11:03 FurkanGulabi

This happened to me using Safari. I switched to chrome, that fixed it.

orion-apps avatar Mar 18 '25 15:03 orion-apps

try the disabling adblock or security extensions

It doesn't work

Djcloveml avatar Mar 18 '25 17:03 Djcloveml

Same here using Firefox on Mac connecting to an instance of ollama-deep-research running locally (but on a different machine) in a Linux VM.

Ollama is up and running and I can reach it from my Firefox. I can also reach the /docs endpoint of ollama-deep-research. Not using any privacy extensions or ad blockers in my Firefox. It also doesn't work in Chrome, but the error message is slightly different: "TypeError: Failed to fetch" instead of "TypeError: NetworkError when attempting to fetch resource".

gitwittidbit avatar Mar 18 '25 20:03 gitwittidbit

Try replacing 127.0.0.1 with localhost, at least it works for me. https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Flocalhost%3A2024

Vrainy avatar Mar 20 '25 14:03 Vrainy

Still not fixed, not even firefox works. In some way it first worked halfway (didn't show this error, only when I entered a prompt and searXNG was not able to be reached/connected and I started troubleshooting).

Then everytime I get this error and seemingly nothing works now. I think the installing guidance for docker container is outdated otherwise.

Please try to recreate and fix this error...

EDIT: deployed it using LangGraph Studio method. Docker method does not work.

VooDisss avatar Mar 23 '25 19:03 VooDisss

Can confirm, Failed to load assistants with Safari, works with Chrome/Firefox.

This happened to me using Safari. I switched to chrome, that fixed it.

prashand avatar Mar 26 '25 10:03 prashand

https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Flocalhost%3A2024

man your fix works bro thanks

hakemz91 avatar Apr 01 '25 14:04 hakemz91

for me , brave adblocker n security stuff was blocking it

jiveshkalra avatar Apr 18 '25 09:04 jiveshkalra

Same here for Safari but Chrome did well

yuugenni avatar Apr 22 '25 05:04 yuugenni

I faced a similar issue, i was running from local vs code, turns out it the env vars to be set correctly.

  • generate the required api keys.
  • open integrated terminal in the main project folder
  • $env:LANGSMITH_API_KEY ="your api key" and $env:OPENAI_API_KEY ="your api key"
  • check if it is set using : echo $env:LANGSMITH_API_KEY
  • Now FROM THE SAME TERMINAL navigate to the studio folder
  • type langgraph dev

This fixed the issue for me

ayswaria-vijayamohan avatar Jun 04 '25 18:06 ayswaria-vijayamohan

Just use the --tunnel flag

langgraph dev --tunnel

KaiKin-C avatar Jun 17 '25 12:06 KaiKin-C

https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Flocalhost%3A2024

man your fix works bro thanks

it's working for me

WangXiZhu avatar Jun 23 '25 08:06 WangXiZhu