Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load assistants #4

Open
bilallamal07 opened this issue Dec 13, 2024 · 14 comments
Open

Failed to load assistants #4

bilallamal07 opened this issue Dec 13, 2024 · 14 comments

Comments

@bilallamal07
Copy link

Screenshot from 2024-12-13 11-52-46

For some reasons l`m getting this error, have double checked export TAVILY_API_KEY

Please verify if the API server is running or accessible from the browser.

TypeError: Failed to fetch

@hinthornw
Copy link

Did your server successfully start?

@bilallamal07
Copy link
Author

issue fixed Disable Ad Blockers or Privacy Extensions
Temporarily disable any ad-blocking or privacy-protection extensions in your browser.
Example: For uBlock Origin, click the extension icon and disable blocking for the site.

@garethcurtis
Copy link

garethcurtis commented Jan 7, 2025

I'm getting the same error. Not got any privacy blockers on. TAVILY_API_KEY is set via export.

` Built research-rabbit @ file:///Users/garethcurtis/Documents/Hyperlogik/research-
Installed 66 packages in 51ms
INFO:langgraph_api.cli:

    Welcome to

╦ ┌─┐┌┐┌┌─┐╔═╗┬─┐┌─┐┌─┐┬ ┬
║ ├─┤││││ ┬║ ╦├┬┘├─┤├─┘├─┤
╩═╝┴ ┴┘└┘└─┘╚═╝┴└─┴ ┴┴ ┴ ┴

This in-memory server is designed for development and testing.
For production use, please use LangGraph Cloud.

2025-01-07T17:34:50.718562Z [info ] Will watch for changes in these directories: ['/Users/garethcurtis/Documents/Hyperlogik/research-rabbit'] [uvicorn.error] api_variant=local_dev
2025-01-07T17:34:50.718686Z [info ] Uvicorn running on http://127.0.0.1:2024 (Press CTRL+C to quit) [uvicorn.error] api_variant=local_dev color_message=Uvicorn running on %s://%s:%d (Press CTRL+C to quit)
2025-01-07T17:34:50.718796Z [info ] Started reloader process [34660] using WatchFiles [uvicorn.error] api_variant=local_dev color_message=Started reloader process [34660] using WatchFiles
2025-01-07T17:34:51.336817Z [info ] Using auth of type=noop [langgraph_api.auth.middleware] api_variant=local_dev
2025-01-07T17:34:51.338635Z [info ] Started server process [34667] [uvicorn.error] api_variant=local_dev color_message=Started server process [%d]
2025-01-07T17:34:51.338684Z [info ] Waiting for application startup. [uvicorn.error] api_variant=local_dev
2025-01-07T17:34:51.923318Z [info ] Registering graph with id 'research_rabbit' [langgraph_api.graph] api_variant=local_dev graph_id=research_rabbit
2025-01-07T17:34:51.924253Z [info ] Application startup complete. [uvicorn.error] api_variant=local_dev
2025-01-07T17:34:51.924367Z [info ] Starting 1 background workers [langgraph_api.queue] api_variant=local_dev
2025-01-07T17:34:51.924525Z [info ] Worker stats [langgraph_api.queue] active=0 api_variant=local_dev available=1 max=1
2025-01-07T17:34:51.924678Z [info ] Queue stats [langgraph_api.queue] api_variant=local_dev max_age_secs=None med_age_secs=None n_pending=0
🎨 Opening Studio in your browser...
2025-01-07T17:34:52.761448Z [info ] GET /ok 200 0ms [langgraph_api.server] api_variant=local_dev latency_ms=0 method=GET path=/ok path_params={} proto=1.1 query_string= req_header={'accept-encoding': 'identity', 'host': '127.0.0.1:2024', 'user-agent': 'Python-urllib/3.11', 'connection': 'close'} res_header={'content-length': '11', 'content-type': 'application/json'} route=None status=200
2025-01-07T17:34:52.761491Z [info ] 🎨 Opening Studio in your browser... [browser_opener] api_variant=local_dev message=🎨 Opening Studio in your browser...
URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
2025-01-07T17:34:52.761561Z [info ] URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 [browser_opener] api_variant=local_dev message=URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024`

garethcurtis@Gareths-MacBook-Pro ~ % curl 127.0.0.1:2024
Not Found%

Then smith.langchain.com says:

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

Looks like Uvicorn is failing:

2025-01-07T17:34:50.718686Z [info ] Uvicorn running on http://127.0.0.1:2024 (Press CTRL+C to quit) [uvicorn.error] api_variant=local_dev color_message=Uvicorn running on %s://%s:%d (Press CTRL+C to quit) 2025-01-07T17:34:50.718796Z [info ] Started reloader process [34660] using WatchFiles [uvicorn.error] api_variant=local_dev color_message=Started reloader process [34660] using WatchFiles

Any ideas please?

@garethcurtis
Copy link

garethcurtis commented Jan 9, 2025

Took another look at this - seems it just doesn't like Safari. Chrome seems to work ok. Might be worth adding a note to the docs unless I missed that somewhere. Thanks.

@lewiswatson55
Copy link

Just wanted to add a +1 to this issue, works no problem on my Mac on chrome but safari seems to be blocking connection to the API.

@s22
Copy link

s22 commented Jan 26, 2025

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

@valinagacevschi
Copy link

It works in Chrome in Incognito WIndow. A bit bizare.

@levibrown
Copy link

I had the same issue in Brave. Fixed after turning the brave shields off.

@rlancemartin
Copy link
Collaborator

I'm tagging @hinthornw and @dqbd on this.

@dqbd
Copy link

dqbd commented Jan 26, 2025

Hello! Will update the connection guide to give more clear guidance when failing to access local services.

@asasidh
Copy link

asasidh commented Jan 27, 2025

I got this error and to fix it all I had to do that was remove brave shields for this site.

@emmette
Copy link

emmette commented Jan 27, 2025

Had this issue w/ Safari on MacOS (error message below). I can confirm that switching to a recent Chrome build worked. Suspect it is the Safari private relay that breaks things.

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

@iliasaz
Copy link

iliasaz commented Jan 29, 2025

Same here except Chrome with/without Incognito doesn't work either. MacOS 15.1.1, Private relay is off. The server is up, but http://127.0.0.1:2024 returns 404

@rlancemartin
Copy link
Collaborator

Tagging @lc-arjun @dqbd ... they recently merged configuration tab w/ assistants.

We should be sure:
1/ ideally the issue is resolved w/ setting assistants
2/ but if it is not, we do not block users from setting configuration

At least before, users could still set configuration even if assistants could not be loaded.

cc: @hinthornw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests