后台运行失败。异常: (状态码: 502) ollama._types.ResponseError: (状态码: 502)

作者: Dax-Zhang-pxy创建于 2025年5月7日更新于 2025年5月7日

According to the guidance document, the ollama was localized using the DeepSeek-r1:8b model, and the error message is as follows: 2025-05-07T08:28:10.103125Z [error ] Background run failed. Exception: (status code: 502) [langgraph_api.worker] api_variant=local_dev graph_id=ollama_deep_researcher run_attempt=1 run_created_at=2025-05-07T08:28:08.960402+00:00 run_ended_at=2025-05-07T08:28:10.103125+00:00 run_exec_ms=473 run_id=1f02b1d3-4dec-6242-93ce-ffec191c2a77 run_started_at=2025-05-07T08:28:09.629635+00:00 thread_name=asyncio_2 Traceback (most recent call last): File "C:\Users\a\.conda\envs\deepResearch\Lib\site-packages\langgraph_api\worker.py", line 144, in worker await asyncio.wait_for(consume(stream, run_id), BG_JOB_TIMEOUT_SECS) File "C:\Users\a\.conda\envs\deepResearch\Lib\asyncio\tasks.py", line 489, in wait_for return fut.result() ^^^^^^^^^^^^ File "C:\Users\a\.conda\envs\deepResearch\Lib\site-packages\langgraph_api\stream.py", line 278, in consume raise e from g File "C:\Users\a\.conda\envs\deepResearch\Lib\site-packages\langgraph_api\stream.py", line 267, in consume async for mode, payload in stream: File "C:\Users\a\.conda\envs\deepResearch\Lib\site-packages\langgraph_api\stream.py", line 210, in astream_state event = await wait_if_not_done(anext(stream, sentinel), done) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\.conda\envs\deepResearch\Lib\site-packages\langgraph_api\asyncio.py", line 82, in wait_if_not_done raise e.exceptions[0] from None File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\pregel\__init__.py", line 2740, in astream async for _ in runner.atick( File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\pregel\runner.py", line 392, in atick _panic_or_proceed( File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\pregel\runner.py", line 499, in _panic_or_proceed raise exc File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\pregel\retry.py", line 128, in arun_with_retry return await task.proc.ainvoke(task.input, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\\\\utils\runnable.py", line 672, in ainvoke input = await asyncio.create_task( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\LangGraph\\\\utils\runnable.py", line 440, in ainvoke ret = await self.afunc(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\langchain_core\runnables\config.py", line 616, in run_in_executor return await asyncio.get_running_loop().run_in_executor( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\.conda\envs\deepResearch\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

内容来源: langchain-ai/local-deep-researcher