Research is getting stucked every other time while giving no meaningful logs / ui hints indicating what it was attempting to do

Author: kha84Created May 7, 2026Updated Sep 26, 2026
Labelsconfirmed

Describe the bug

  1. Installed gpt-researcher by cloning a github.
  2. Configured to use my local SearXNG instance and Ollama Cloud.
  3. Tested both works via suggested scripts:

(btw half of the scripts in https://github.com/assafelovic/gpt-researcher/tree/main/tests require a caring hand as they are not setting correct sys path and as a result cannot import various python modules -> cannot be executed by user to ensure everything is in place and configured correctly)

  1. Ran my first research - everything went smoothly, got result
  2. Tried to run my second research - it stucked
  3. Restarted the app - the research was still showing as "In progress" but no real progress were made as per CLI logs - no activity at all.
  4. Since I wasn't sure whether or not the research should auto-resume in case of application restart, I triggered another research - it stucked as well.
  5. Restarted the app once again. Tried once more - it proceeded, at last.

During that period I was testing my own SearXNG instance manually via browser and curl just to ensure it's not him, who's making troubles. It wasn't him.

To Reproduce Steps provided above.

Expected behavior

  • No hangs
  • If some external call is made outside of the application control (like a call to llm inference provider or a call to search engine / web scraping tool) - it should be clearly reflected in application stdout logs and in the UI for user
  • all the external calls must have a timeout & retry logic with informing user, that some of his component (llm provider / search engine / scraper) is misbehaving

Logs and screenshots

Here's how the typical hang looks like from CLI perspective:

(env) user@x1:~/Projects/gpt-researcher$ python -m uvicorn main:app --reload
INFO:     Will watch for changes in these directories: ['/home/user/Projects/gpt-researcher']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [537120] using StatReload
INFO:     Started server process [537122]
INFO:     Waiting for application startup.
2026-05-07 23:44:33,511 - backend.server.app - INFO - GPT Researcher API ready - local mode (no database persistence)
INFO:     Application startup complete.
INFO:     127.0.0.1:42306 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:34122 - "WebSocket /ws" [accepted]
INFO:     connection open
2026-05-07 23:44:57,874 - server.server_utils - INFO - Received WebSocket message: start {"task":"Find me some good LLM providers tha...
2026-05-07 23:44:57,874 - server.server_utils - INFO - Processing start command
/home/user/Projects/gpt-researcher/env/lib/python3.12/site-packages/langgraph/checkpoint/serde/encrypted.py:5: LangChainPendingDeprecationWarning: The default value of `allowed_objects` will change in a future version. Pass an explicit value (e.g., allowed_objects='messages' or allowed_objects='core') to suppress this warning.
  from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
Image

Desktop (please complete the following information):

  • Ubuntu 24 lts
  • Firefox 150.0.1-1
  • Version - commit 92bfc0388c5f7a03b6cb34eaf6ae14298a4b458e

Source: assafelovic/gpt-researcher