#http://localhost:8888/ shows nothing

191 messages · Page 1 of 1 (latest)

thick leaf
#

I have installed unlosth with:
irm https://unsloth.ai/install.ps1 | iex

I'm launching it as unsloth studio -H 0.0.0.0 -p 8888

Starting Unsloth Studio on http://...:8888
✅ Frontend loaded from C:\Users\RUAN\.unsloth\studio\unsloth_studio\Lib\site-packages\studio\frontend\dist
INFO:     Started server process [12000]
INFO:     Waiting for application startup.
Hardware detected: CUDA — NVIDIA GeForce GTX 1060 6GB
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
{"timestamp": "2026-03-28T15:41:41.308756Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/", "status_code": 200, "process_time_ms": 2.01}
{"timestamp": "2026-03-28T15:41:41.735060Z", "level": "info", "event": "Pre-caching helper GGUF: unsloth/Qwen3.5-4B-GGUF/Qwen3.5-4B-UD-Q4_K_XL.gguf"}
{"timestamp": "2026-03-28T15:41:41.786124Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/api/health", "status_code": 200, "process_time_ms": 0.97}
{"timestamp": "2026-03-28T15:41:41.873002Z", "level": "info", "event": "Helper GGUF cached: 1 file(s)"}
{"timestamp": "2026-03-28T15:41:42.294851Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/", "status_code": 200, "process_time_ms": 1.39}

🦥 Unsloth Studio is running
────────────────────────────────────────────────────
  On this machine — open this in your browser:
    http://127.0.0.1:8888
    (same as http://localhost:8888)

  From another device on your network / to share:
    http://...:8888

  API & health:
    http://127.0.0.1:8888/api
    http://127.0.0.1:8888/api/health
────────────────────────────────────────────────────
  Tip: if you are on the same computer, use the Local link above.
#

When I visit http://localhost:8888/ it shows nothing, just a black screen, no text, nothing

http://127.0.0.1:8888/api
output:{"error":"API endpoint not found"}
http://127.0.0.1:8888/api/health
output: {"status":"healthy","timestamp":"2026-03-28T12:43:07.774522","service":"Unsloth UI Backend","device_type":"windows","chat_only":false}

I'm using Win11 24H2
I already tried restarting my pc, reinstalling unsloth, starting as admin, what I'm missing?

heavy ravine
#

are you using chrome?

thick leaf
#

I have tested on chrome, brave, edge

heavy ravine
#

on chrome, can you click the lock on the left of the url

#

and clear site data

#

actually this

#

click on Cookies and Site Data

#

Manage on device site data

#

then click the trash bin

#

you'll see a reload button the page, click it

thick leaf
thick leaf
heavy ravine
#

i've seen this issue before

#

i am trying to remember

#

if you type F12

#

to open chrome dev tools

#

then choose network

#

then Reload the page

#

then take a screenshot and show me

thick leaf
heavy ravine
#

@glad sluice help me out with this

glad sluice
#

In elements

thick leaf
glad sluice
#

What's the Dom look like

#

The html

glad sluice
heavy ravine
#

wait

#

wait

#

are you starting the server on your local machine?

#

or on a remote machine?

thick leaf
#

local

heavy ravine
#

just need to check

#

ok

#

Mugi? any thoughts

thick leaf
glad sluice
#

Something is very wrong those console errors

heavy ravine
#

yes but i just tried on windows an hour ago

#

all was good

#

windows 10

glad sluice
#

Can u click

#

On one of js files

#

In link element

thick leaf
glad sluice
#

Ok it's there good

#

Sec

heavy ravine
#

wait might be an extension

#

or ad blocker?

thick leaf
#

i have no extension on chrome

heavy ravine
#

or antivirus flagging that injection?

thick leaf
#

its clean, as i dont use it

heavy ravine
#

mm

#

oh wait

#

wait

glad sluice
#

he requests favicon correctly

#

console errors are all js files

thick leaf
#

i dont think its antivirus, i have windows defender disabled on gpedit 💀

heavy ravine
#

ok

#

can you go to C:\Users\RUAN\.unsloth\studio\unsloth_studio\Lib\site-packages\studio\frontend\dist and show us the content of that directory?

#

also in chrome's url box can you type chrome://version. and tell me what u get?

thick leaf
#
 Directory of C:\Users\RUAN\.unsloth\studio\unsloth_studio\Lib\site-packages\studio\frontend\dist

28/03/2026  12:25    <DIR>          .
28/03/2026  12:25    <DIR>          ..
28/03/2026  12:25    <DIR>          assets
28/03/2026  12:14           166.049 blacklogo.png
28/03/2026  12:14            13.409 favicon.png
28/03/2026  12:25    <DIR>          fonts
28/03/2026  12:25    <DIR>          Hellix font official
28/03/2026  12:14             4.746 huggingface.svg
28/03/2026  12:14             1.495 index.html
28/03/2026  12:14            54.017 logotext.png
28/03/2026  12:14            50.943 rounded-512.png
28/03/2026  12:14            85.845 rounded.png
28/03/2026  12:25    <DIR>          Sloth emojis
28/03/2026  12:14           629.236 studio github landscape colab display.png
28/03/2026  12:14           720.943 unsloth-gem.png
28/03/2026  12:14           370.070 unsloth.ico
28/03/2026  12:14             1.654 vite.svg
28/03/2026  12:14           162.842 whitelogo.png
              12 File(s)      2.261.249 bytes
               6 Dir(s)  632.496.242.688 bytes free
heavy ravine
#

index.html is there

thick leaf
#
Chrome logo
Google LLC
Copyright 2026 Google LLC. All rights reserved.
Google Chrome    146.0.7680.165 (Official Build) (64-bit) (cohort: Stable Installs & Version Pins) 
Revision    4b989da09e15a7dc0de0785cb5ff232aadae3f0f-refs/branch-heads/7680@{#2932}
OS    Windows 11 Version 24H2 (Build 26100.4652)
JavaScript    V8 14.6.202.26
User Agent    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Command Line    "C:\Program Files\Google\Chrome\Application\chrome.exe" --origin-trial-disabled-features=CanvasTextNg|WebAssemblyCustomDescriptors --restart --flag-switches-begin --enable-features=WebContentsForceDark --flag-switches-end
Executable Path    C:\Program Files\Google\Chrome\Application\chrome.exe
heavy ravine
#

also

Stop studio first, then:

C:\Users\RUAN\.unsloth\studio\unsloth_studio\Scripts\python -c "
import http.server, socketserver
class H(http.server.SimpleHTTPRequestHandler):
    def do_GET(self):
        self.send_response(200)
        self.send_header('Content-Type', 'text/html')
        self.end_headers()
        self.wfile.write(b'<h1>Port 8888 works!</h1>')
with socketserver.TCPServer(('0.0.0.0', 8888), H) as s:
    print('Serving on http://localhost:8888')
    s.serve_forever()
"

then open your browser at http://localhost:8888 , do you see Port 8888 works ?

glad sluice
#

i dont undrestand why mime type is wrong

#

send by server

#

wait

#

gpedit

#

u said

#

did u touch something else in there?

thick leaf
#

no

#

just disabled defender

heavy ravine
#

😄

#

i am lagging ugh

heavy ravine
#

ok so nothing is blocking your port

#

now we know as much

#

so antivirus or defender possibility is out

glad sluice
# thick leaf

in network tab click one of requests please what does Response Headers say

#

u can refresh page to get requests if u cleared em

#

the .js requests specificly any of those

glad sluice
#

do the .js file

#

like second

#

request

#

for example

thick leaf
glad sluice
#

IC

#

ok

#

now last thing

#

C:\Users\RUAN\.unsloth\studio\unsloth_studio\Scripts\python -c "import mimetypes; print(mimetypes.guess_type('test.js'))"

#

what does it say

#

in console

thick leaf
#

('text/plain', None)

glad sluice
#

BRUH how xd

#

ok

#

looks like it will be easy

#

open powershell as admin

#

reg add "HKCR\.js" /v "Content Type" /d "application/javascript" /f

#

restart studio after that

heavy ravine
#

back

thick leaf
#

now the command output ('application/javascript', None)

glad sluice
#

perfect

#

restart studio

heavy ravine
thick leaf
glad sluice
#

why

thick leaf
#

whenever i reload the page it prints on the console

#

well-known/appspecific/com.chrome.devtools.json", "status_code": 200, "process_time_ms": 1.93}
{"timestamp": "2026-03-28T16:18:09.577658Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/", "status_code": 200, "process_time_ms": 1.84}
{"timestamp": "2026-03-28T16:18:09.592020Z", "level": "info", "event": "request_completed", "method": "GET", "path": "/.well-known/appspecific/com.chrome.devtools.json", "status_code": 200, "process_time_ms": 2.19}

#

i will restart my machine to be sure about the reg who knows MSFT''

#

brb

glad sluice
#

yes thats good

thick leaf
#

continues the same D:

#

i also tested on firefox

glad sluice
#

u fully restarted pc?

thick leaf
#

yes

#

im using two machines thats why i continued on, on discord

glad sluice
#

do u have

#

vscode?

thick leaf
#

yes

glad sluice
#

C:\Users\RUAN.unsloth\studio\unsloth_studio\Lib\site-packages\studio\backend\main.py

#

do u have this file?

thick leaf
#

yes

heavy ravine
#

wait one second

#

before he edits any files

glad sluice
#

add this before import from fastapi

heavy ravine
#

no wait

glad sluice
#
  mimetypes.add_type("application/javascript", ".js")```
heavy ravine
#

one sec

glad sluice
#

its harmless he can delete that rq

heavy ravine
#

@glad sluice let's test manually first

#
reg add "HKCR\.js" /v "Content Type" /d "application/javascript" /f
reg add "HKCR\.css" /v "Content Type" /d "text/css" /f

then

C:\Users\RUAN\.unsloth\studio\unsloth_studio\Scripts\python -c "import mimetypes; print(mimetypes.guess_type('test.js')); print(mimetypes.guess_type('test.css'))"
#

show me what that gives u

thick leaf
#

('application/javascript', None)
('text/css', None)

glad sluice
#

thats correct

heavy ravine
#

mm that's correct now

#

can you

#

run this again

thick leaf
#

run what?

heavy ravine
#
irm https://unsloth.ai/install.ps1 | iex
#

and then try

unsloth studio start -H 0.0.0.0 -p 8000
thick leaf
#

ok, its reinstalling

heavy ravine
#

fingers crossed

#

meanwhile in another terminal can you show me npm --version

thick leaf
#

11.6.3

heavy ravine
#

wait what is this right

thick leaf
#

hm? npm version

heavy ravine
#

one sec

#

ok what we did should work though

glad sluice
#

ye

#

let him try

#

rq

heavy ravine
#

actually once its done

glad sluice
#

the 2 lines at top

heavy ravine
#

close the terminal and reopen it

thick leaf
#

it reinstalled, issue persist

heavy ravine
#

then do unsloth studio -H 0.0.0.0 -p 8000

#

close the temrinal and reopen it

#

then issue the command in a new terminal

#

windows can be finnicky with registry entries

#

if that doesn't work , Mugi you can do whatever u want

#

😄

thick leaf
#

wtf

heavy ravine
#

you're welcoe

glad sluice
#

wtf happened to unsloth

#

why did go high constrast

#

xd

heavy ravine
#

he maybe has dark mode somewhere?

glad sluice
#

do u have extension?

heavy ravine
#

on the browser as a setting

thick leaf
#

i dont have extension but i have enabled force dark mode

heavy ravine
#

yes don't do that lol

#

we have internal dark mode

#

once you login

#

you can flip it

#

it was in the output of his chrome://version , it showed:

Command Line: ... --enable-features=WebContentsForceDark ...

thick leaf
#

do you think the issue was the wrong mime type association?

heavy ravine
#

yes

heavy ravine
#

what we'll do it so that other users don't have that issue is register them

#

thank you for reporting that

thick leaf
#

thank you guys ❤️

heavy ravine
#

that was a tricky one

glad sluice
#

this was the most intressting one

#

so far

heavy ravine
#

yes by far