GithubHelp home page GithubHelp logo

Comments (2)

JeremyBickel avatar JeremyBickel commented on September 7, 2024

User's latest input: Hello, Mr. Bot.
agixt_1 |
agixt_1 | INFO: 172.19.0.1:39024 - "POST /api/agent/ooba/prompt HTTP/1.1" 500 Internal Server Error
agixt_1 | ERROR: Exception in ASGI application
agixt_1 | Traceback (most recent call last):
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn
agixt_1 | sock = connection.create_connection(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
agixt_1 | raise err
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
agixt_1 | sock.connect(sa)
agixt_1 | ConnectionRefusedError: [Errno 111] Connection refused
agixt_1 |
agixt_1 | The above exception was the direct cause of the following exception:
agixt_1 |
agixt_1 | Traceback (most recent call last):
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
agixt_1 | response = self._make_request(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
agixt_1 | conn.request(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 395, in request
agixt_1 | self.endheaders()
agixt_1 | File "/usr/local/lib/python3.10/http/client.py", line 1278, in endheaders
agixt_1 | self._send_output(message_body, encode_chunked=encode_chunked)
agixt_1 | File "/usr/local/lib/python3.10/http/client.py", line 1038, in _send_output
agixt_1 | self.send(msg)
agixt_1 | File "/usr/local/lib/python3.10/http/client.py", line 976, in send
agixt_1 | self.connect()
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 243, in connect
agixt_1 | self.sock = self._new_conn()
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 218, in _new_conn
agixt_1 | raise NewConnectionError(
agixt_1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5c377ea2f0>: Failed to establish a new connection: [Errno 111] Connection refused
agixt_1 |
agixt_1 | The above exception was the direct cause of the following exception:
agixt_1 |
agixt_1 | Traceback (most recent call last):
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
agixt_1 | resp = conn.urlopen(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
agixt_1 | retries = retries.increment(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
agixt_1 | raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
agixt_1 | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='text-generation-webui', port=5000): Max retries exceeded with url: /api/v1/generate (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5c377ea2f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
agixt_1 |
agixt_1 | During handling of the above exception, another exception occurred:
agixt_1 |
agixt_1 | Traceback (most recent call last):
agixt_1 | File "/agixt/Interactions.py", line 461, in run
agixt_1 | self.response = await self.agent.instruct(formatted_prompt, tokens=tokens)
agixt_1 | File "/agixt/fb/Agent.py", line 151, in instruct
agixt_1 | answer = await self.PROVIDER.instruct(prompt=prompt, tokens=tokens)
agixt_1 | File "/agixt/providers/oobabooga.py", line 110, in instruct
agixt_1 | response = requests.post(f"{self.AI_PROVIDER_URI}/api/v1/generate", json=params)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 115, in post
agixt_1 | return request("post", url, data=data, json=json, **kwargs)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
agixt_1 | return session.request(method=method, url=url, **kwargs)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
agixt_1 | resp = self.send(prep, **send_kwargs)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
agixt_1 | r = adapter.send(request, **kwargs)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
agixt_1 | raise ConnectionError(e, request=request)
agixt_1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host='text-generation-webui', port=5000): Max retries exceeded with url: /api/v1/generate (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5c377ea2f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
agixt_1 |
agixt_1 | During handling of the above exception, another exception occurred:
agixt_1 |
agixt_1 | Traceback (most recent call last):
agixt_1 | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
agixt_1 | result = await app( # type: ignore[func-returns-value]
agixt_1 | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
agixt_1 | return await self.app(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 292, in call
agixt_1 | await super().call(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
agixt_1 | await self.middleware_stack(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
agixt_1 | raise exc
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
agixt_1 | await self.app(scope, receive, _send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in call
agixt_1 | await self.simple_response(scope, receive, send, request_headers=headers)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
agixt_1 | await self.app(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
agixt_1 | raise exc
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
agixt_1 | await self.app(scope, receive, sender)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
agixt_1 | raise e
agixt_1 | File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
agixt_1 | await self.app(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
agixt_1 | await route.handle(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
agixt_1 | await self.app(scope, receive, send)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
agixt_1 | response = await func(request)
agixt_1 | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
agixt_1 | raw_response = await run_endpoint_function(
agixt_1 | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
agixt_1 | return await dependant.call(**values)
agixt_1 | File "/agixt/endpoints/Agent.py", line 132, in prompt_agent
agixt_1 | response = await agent.run(
agixt_1 | File "/agixt/Interactions.py", line 465, in run
agixt_1 | for err in e:
agixt_1 | TypeError: 'ConnectionError' object is not iterable

from agixt.

AliveDedSec avatar AliveDedSec commented on September 7, 2024

bozo32 https://josh-xt.github.io/AGiXT/3-Providers/Kobold.html

from agixt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.