Giter Site home page Giter Site logo

Can not creat brain about quivr HOT 3 OPEN

BabaSarf avatar BabaSarf commented on June 29, 2024 1
Can not creat brain

from quivr.

Comments (3)

dosubot avatar dosubot commented on June 29, 2024 2

🤖

Based on the information you've provided, it seems like you're encountering two separate issues: a CORS policy error and a Docker connection error.

The CORS policy error is likely due to your domain "aipartners.org.nz" not being included in the list of allowed origins in your CORS middleware configuration. The browser enforces CORS policy to prevent cross-origin requests that could potentially lead to security vulnerabilities. To fix this, you should add your domain to the list of allowed origins in your CORS middleware configuration. Here's an example of how you can do this:

origins = [
    "http://localhost",
    "http://localhost:3000",
    "http://localhost:3001",
    "https://quivr.app",
    "https://www.quivr.app",
    "http://quivr.app",
    "http://www.quivr.app",
    "https://aipartners.org.nz",
    "http://aipartners.org.nz",
    "*",
]

You can find the current CORS middleware configuration in the Quivr codebase in the backend/middlewares/cors.py file.

The Docker error "httpx.ConnectError: [Errno 111] Connection refused" typically means that your application is trying to connect to a service at a particular IP address and port, but no service is listening at that address. This could be due to the service not being started, the service crashing, or a network configuration issue. To resolve this, you should check that the service your application is trying to connect to is running and that the network configuration is correct. If you're using Docker Compose, you might need to ensure that the services are linked correctly.

I hope this helps! If you have any further questions or need more clarification, feel free to ask.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from quivr.

dosubot avatar dosubot commented on June 29, 2024

🤖

Hey there @BabaSarf! 🎉 Great to see you back. Looks like we've got another puzzle to solve together. Hang tight, I'm diving into your issue and will get back to you with some insights shortly!

from quivr.

BabaSarf avatar BabaSarf commented on June 29, 2024

and here is more error log

Traceback (most recent call last):
backend-core | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
backend-core | result = await app( # type: ignore[func-returns-value]
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
backend-core | return await self.app(scope, receive, send)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 276, in call
backend-core | await super().call(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
backend-core | await self.middleware_stack(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call
backend-core | raise exc
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
backend-core | await self.app(scope, receive, _send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in call
backend-core | await self.simple_response(scope, receive, send, request_headers=headers)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
backend-core | await self.app(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call
backend-core | raise exc
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
backend-core | await self.app(scope, receive, sender)
backend-core | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
backend-core | raise e
backend-core | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
backend-core | await self.app(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
backend-core | await route.handle(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
backend-core | await self.app(scope, receive, send)
backend-core | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
backend-core | response = await func(request)
backend-core | ^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 237, in app
backend-core | raw_response = await run_endpoint_function(
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
backend-core | return await dependant.call(**values)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/code/modules/onboarding/controller/onboarding_routes.py", line 28, in get_user_onboarding_handler
backend-core | return onboardingService.get_user_onboarding(current_user.id)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/code/modules/onboarding/service/onboarding_service.py", line 30, in get_user_onboarding
backend-core | return self.repository.get_user_onboarding(user_id)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/code/modules/onboarding/repository/onboardings.py", line 29, in get_user_onboarding
backend-core | .execute()
backend-core | ^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/postgrest/_sync/request_builder.py", line 57, in execute
backend-core | r = self.session.request(
backend-core | ^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 814, in request
backend-core | return self.send(request, auth=auth, follow_redirects=follow_redirects)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 901, in send
backend-core | response = self._send_handling_auth(
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 929, in _send_handling_auth
backend-core | response = self._send_handling_redirects(
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 966, in _send_handling_redirects
backend-core | response = self._send_single_request(request)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1002, in _send_single_request
backend-core | response = transport.handle_request(request)
backend-core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 217, in handle_request
backend-core | with map_httpcore_exceptions():
backend-core | File "/usr/local/lib/python3.11/contextlib.py", line 155, in exit
backend-core | self.gen.throw(typ, value, traceback)
backend-core | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
backend-core | raise mapped_exc(message) from exc
backend-core | httpx.ConnectError: [Errno 111] Connection refused
backend-core | INFO: 127.0.0.1:33578 - "GET /healthz HTTP/1.1" 200 OK

from quivr.

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.