I am getting this errror: {“message”: “Task excep...
# ask-ai
b
I am getting this errror: {“message”: “Task exception was never retrieved\nfuture: <Task finished name=‘AgentActivity.pipeline_reply’ coro=<AgentActivity._pipeline_reply_task() done, defined at /usr/local/lib/python3.10/site-packages/livekit/agents/utils/log.py:13> exception=TypeError(\“argument of type ‘NoneType’ is not iterable\“)>\nTraceback (most recent call last):\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/utils/log.py\“, line 16, in async_fn_logs\n return await fn(*args, **kwargs)\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/voice/agent_activity.py\“, line 1327, in _pipeline_reply_task\n await exe_task\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/utils/log.py\“, line 16, in async_fn_logs\n return await fn(*args, **kwargs)\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/voice/generation.py\“, line 344, in _execute_tools_task\n fnc_args, fnc_kwargs = llm_utils.prepare_function_arguments(\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/llm/utils.py\“, line 355, in prepare_function_arguments\n if param_name in args_dict and args_dict[param_name] is None\nTypeError argument of type ‘NoneType’ is not iterable”, “level”: “ERROR”, “name”: “asyncio”, “pid”: 37, “job_id”: “AJ_ReUfvCWPCR9o”, “timestamp”: “2025-07-14T104230.270224+00:00"}
t
Thanks for reaching out, Pushpender. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Can you provide more details about how you're invoking the pipeline that triggers this error? Specifically, what arguments or payload are being used, and do you know which tool or function was being called at the time? This information will help pinpoint where a None value is unexpectedly used as an iterable. Sources: livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py