Comments (3)
🤖
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.
🤖
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.
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)
- [Bug]: ERROR [frontend builder 4/4] RUN yarn build HOT 2
- [Bug]: HOT 1
- [Bug]: brains disapeared and can't create new ones HOT 4
- [Bug]:Run failed docker compose up --build HOT 1
- Can not sign in to quivr[Bug]: HOT 1
- [Bug]: The front-end interface is incomplete HOT 6
- [Bug]: :IP:5050 HOT 5
- [Bug]: README Quick Start and documentation outdated HOT 5
- [Bug]: HOT 2
- [Bug]: Sharing brains HOT 2
- [Bug]: Frontend login page CORS Bug HOT 2
- [Bug]: Issue with Brain Creation and URL Knowledge Addition HOT 1
- can not creat brain HOT 2
- [Bug]: Can't Create Brain HOT 1
- [Bug]: Upload cancel keeps openin in chat
- [Bug]: Unsubscribe
- [Bug]: I can't make quivr work on my windows (brain creation problem && how to use llama 2 on windows and set it up) HOT 2
- [Bug]: Brain Creation Fails HOT 2
- A little update in the website of Quivr HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quivr.