finic-ai/rag-stack

UI gives blank page

Opened this issue · 6 comments

I feel there is no detailed info on running UI. I tried building the rag-ui and run with port 5173 exposed.
But getting a blank page in browser (no errors, 200 OK in curl)
curl localhost:5173

<script type="module"> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type window.__vite_plugin_react_preamble_installed__ = true </script>
<script type="module" src="/@vite/client"></script>

<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="https://res.cloudinary.com/demo/image/upload/v1690994866/Icon_6_mo6skf.png" />
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous"/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chat My Files</title>
<script type="module" src="/src/main.tsx"></script>

But the browser is just white blank page.

I got a blank page when the server wasn't available on the port configured in the .env. If you server is not local, try to curl the server address from your local machine to make sure it is reachable.

@lancedouglas1 thanks for responding quick!
From within the UI container, I can reach the rag-server service port:

curl 52.226.201.183:8081
{"detail":"Not Found"}root@cb67c8062fad:/ragstack#

I have configured this (rag-server service) in .env.

When I do a curl of UI, I get the html o/p as described in my first post. But when I open the same on the browser, I get blank screen!

curl to the rag-server service says detail:not found as above. do you also get similar?

@AI-Zebra sorry, I gave up on the package and moved on.

@lancedouglas1 thanks, are you able to see the UI, however?

hi @AI-Zebra @lancedouglas1
when I run the command ./scripts/local/run-dev.sh its display like this

image
where I am getting wrong please let me know and also to open the UI also.

hi @AI-Zebra @lancedouglas1 when I run the command ./scripts/local/run-dev.sh its display like this

image where I am getting wrong please let me know and also to open the UI also.

Same here... Trying to get an answer (#47)