generate_query 发生 InternalServerError('错误代码: 502') 错误
The specific error log is as follows: Traceback (most recent call last): File "C:\Users\a\.conda\envs\localDeep\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\localDeep\Lib\asyncio\tasks.py", line 489, in wait_for return fut.result() ^^^^^^^^^^^^ File "C:\Users\a\.conda\envs\localDeep\Lib\site-packages\langgraph_api\stream.py", line 278, in consume raise e from g File "C:\Users\a\.conda\envs\localDeep\Lib\site-packages\langgraph_api\stream.py", line 267, in consume async for mode, payload in stream: File "C:\Users\a\.conda\envs\localDeep\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\localDeep\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\localDeep\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\a\AppData\Roaming\Python\Python311\site-packages\langchain_core\runnables\config.py", line 607, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\localDeepResearcher\local-deep-researcher\./src/ollama_deep_researcher/graph.py", line 57, in generate_query result = llm_json_mode.invoke( ^^^^^^^^^^^^^^^^^^^^^
内容来源: langchain-ai/local-deep-researcher