openui icon indicating copy to clipboard operation
openui copied to clipboard

accessing 127.0.0.1:7878 open blank page (windows 11 - AMD)

Open cksbisqui opened this issue 9 months ago • 11 comments

Hello. I have follow the instructions to the dot, and everything installed ok. Created an openui environment, did pip install, set my openai key, and once server is up, I get a blank page. Please help!

in the cmd I get this:

(openui) F:\OpenUIfolder\openui\backend>python -m openui wandb: Unpatching OpenAI completions INFO (openui): Starting OpenUI AI Server created by W&B... INFO (openui): Running API Server INFO (uvicorn.error): Started server process [22552] INFO (uvicorn.error): Waiting for application startup. DEBUG (openui): Starting up server in 22552... INFO (uvicorn.error): Application startup complete. INFO (uvicorn.error): Uvicorn running on http://127.0.0.1:7878 (Press CTRL+C to quit) INFO (uvicorn.access): 127.0.0.1:53891 - "GET /ai/new HTTP/1.1" 200 INFO (uvicorn.access): 127.0.0.1:53891 - "GET /assets/index-6BqEBdFF.js HTTP/1.1" 200 INFO (uvicorn.access): 127.0.0.1:53892 - "GET /assets/vendor-BGjp6CLF.js HTTP/1.1" 200 INFO (uvicorn.access): 127.0.0.1:53893 - "GET /assets/index-DspDvSlJ.css HTTP/1.1" 200

Screenshot 2024-05-04 233530 Screenshot 2024-05-04 234712 Screenshot 2024-05-04 234802

cksbisqui avatar May 05 '24 04:05 cksbisqui

The errors are saying the JavaScript files are returning plain text. Can you share what's being returned by selecting one of the js files from the last screenshot you shared?

vanpelt avatar May 05 '24 09:05 vanpelt

I'm facing the same issue, windows 10

Fahadxx avatar May 06 '24 18:05 Fahadxx

@vanpelt , Thank you for helping out with the issue. Here are the screenshots. the .js are empty, all of them, and in the 127.0.0.1, I see this in the second screenshot. I searched and found out some comments about React and a specific line in the code, <script type="module" crossorigin src="/assets/index-6BqEBdFF.js"></script> , that should have <script type="text/javascript" ...> instead. But I don't know if that is the issue here, and I cannot change that code in the browser to test it.

Screenshot 2024-05-06 150232 Screenshot 2024-05-06 150339

I was able to build it on docker, but then it was not finding Ollama, and my first task made the process freeze up.

cksbisqui avatar May 06 '24 20:05 cksbisqui

It could be a windows path issue. I'll try it in Windows when I get a chance.

vanpelt avatar May 07 '24 18:05 vanpelt

sadly same error on my side. any solution will be great.

k2an avatar May 09 '24 07:05 k2an

I' am facing same error in windows 10 also

magdymaher2024 avatar May 11 '24 01:05 magdymaher2024

Same issue on windows 11

Ereis avatar May 14 '24 12:05 Ereis

Did anyone ever figure this out? I'm getting this same error on Windows 11

VCDragoon avatar Jun 03 '24 14:06 VCDragoon

@vanpelt , were you able to have a look at this issue? Much appreciated.

cksbisqui avatar Jun 06 '24 18:06 cksbisqui

Haven't had access to a windows machine. Short term quick solution is to just run it in docker, I'll be publishing an official image soon. I'll try to take a look, for anyone adventurous, the problem code for windows is probably here. A quick and dirty fix might be to do something like:

if os.name == "nt":
  full_path = full_path.replace("/", "\")

vanpelt avatar Jun 06 '24 23:06 vanpelt

Thank you for the reply @vanpelt.

Cheers.

On Jun 6, 2024 at 6:54 PM, Chris Van Pelt @.***> wrote:

Haven't had access to a windows machine. Short term quick solution is to just run it in docker, I'll be publishing an official image soon. I'll try to take a look, for anyone adventurous, the problem code for windows is probably here. A quick and dirty fix might be to do something like:

if os.name == "nt": full_path = full_path.replace("/", "")

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cksbisqui avatar Jun 06 '24 23:06 cksbisqui