-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I want to run OpenRAG in Docker using the following relevant .env values:
BASE_URL=http://host.docker.internal:11434 # ollama
EMBEDDER_BASE_URL=http://host.docker.internal:11434 # ollama
APP_PORT=8080
WITH_CHAINLIT_UI=true
INDEXERUI_COMPOSE_FILE=extern/indexer-ui/docker-compose.yaml
INDEXERUI_PORT=8081
INDEXERUI_URL='http://localhost:8081'
VITE_API_BASE_URL='http://localhost:8080'
I can successfully load http://localhost:8080/chainlit and http://localhost:8081/indexer. However, I cannot create a new partition nor upload any PDF file using Indexer UI.
I have two errors in the web console when I click Upload files (no partitions created before):
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/partition/.
GET http://localhost:8080/partition/
Error uploading file(s): Error: Failed to index file: 403 Forbidden
POST http://localhost:8080/indexer/partition/MyPartition/file/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
Response: {"detail": "Invalid or missing token"}
When I changed the VITE_API_BASE_URL to http://localhost:8081, then I get the following errors:
Error: Failed to fetch partitions: 404 Not Found
GET http://localhost:8081/partition/
Error uploading file(s): Error: Failed to index file: 403 Forbidden
POST http://localhost:8081/indexer/partition/MyPartition/file/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
Response: Cross-site POST form submissions are forbidden
How to fix it?
Metadata
Metadata
Assignees
Labels
No labels