Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI gives blank page #36

Open
AI-Zebra opened this issue Aug 22, 2023 · 6 comments
Open

UI gives blank page #36

AI-Zebra opened this issue Aug 22, 2023 · 6 comments

Comments

@AI-Zebra
Copy link

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.

@lancedouglas1
Copy link

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.

@AI-Zebra
Copy link
Author

@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?

@lancedouglas1
Copy link

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

@AI-Zebra
Copy link
Author

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

@Siddhijain16
Copy link

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.

@Victorivus
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants