Skip to content

Can't begin searching for stuff because the process is crashing #464

@TomerGamerTV

Description

@TomerGamerTV

Tried both on firefox and on chrome and im getting this issue:

Traceback (most recent call last):
  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/backend/web/managers/connection.py", line 201, in start_stream
    async for message in team_manager.run_stream(
  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/backend/teammanager/teammanager.py", line 413, in run_stream
    async for message in self.team.run_stream(  # type: ignore
  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/teams/roundrobin_orchestrator.py", line 400, in run_stream
    async for message in super().run_stream(
  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/autogen_agentchat/teams/_group_chat/_base_group_chat.py", line 518, in run_stream
    raise RuntimeError(str(message.error))
RuntimeError: APIConnectionError: Connection error.
Traceback:
Traceback (most recent call last):

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
    yield

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
    resp = await self._pool.handle_async_request(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
    raise exc from None

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
    response = await connection.handle_async_request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
    raise exc

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
    stream = await self._connect(request)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_async/connection.py", line 124, in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
    return await self._backend.connect_tcp(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
    with map_exceptions(exc_map):

  File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc

httpcore.ConnectError: All connection attempts failed


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/openai/_base_client.py", line 1529, in request
    response = await self._client.send(
               ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1629, in send
    response = await self._send_handling_auth(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
    response = await self._send_handling_redirects(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
    response = await self._send_single_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1730, in _send_single_request
    response = await transport.handle_async_request(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
    with map_httpcore_exceptions():

  File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__
    self.gen.throw(value)

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
    raise mapped_exc(message) from exc

httpx.ConnectError: All connection attempts failed


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/autogen_agentchat/teams/_group_chat/_chat_agent_container.py", line 79, in handle_request
    async for msg in self._agent.on_messages_stream(self._message_buffer, ctx.cancellation_token):

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/agents/web_surfer/fara/_fara_web_surfer.py", line 305, in on_messages_stream
    function_call, raw_response = await self.generate_model_call(
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/agents/web_surfer/fara/_fara_web_surfer.py", line 427, in generate_model_call
    response = await self._make_model_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 420, in exc_check
    raise retry_exc.reraise()
          ^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/__init__.py", line 187, in reraise
    raise self.last_attempt.result()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/magentic_ui/agents/web_surfer/fara/_fara_web_surfer.py", line 101, in _make_model_call
    return await asyncio.wait_for(
           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/autogen_ext/models/openai/_openai_client.py", line 624, in create
    result: Union[ParsedChatCompletion[BaseModel], ChatCompletion] = await future
                                                                     ^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/openai/resources/chat/completions/completions.py", line 2672, in create
    return await self._post(
           ^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/openai/_base_client.py", line 1794, in post
    return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/mnt/d/GitHub-Projects/magentic-ui/.venv/lib/python3.12/site-packages/openai/_base_client.py", line 1561, in request
    raise APIConnectionError(request=request) from err

openai.APIConnectionError: Connection error.

I'm seeing openai errors but I launched the process from the default yamal so it should be using my local model, idk why it's throwing this error.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions