lumina/CONNECTION_FIXED.md
2025-11-29 23:13:05 +03:00

1.4 KiB

Connection Refused - FIXED ✅

Date: 2025-11-29 12:53
Error: ERR_CONNECTION_REFUSED on localhost:9001


Problem

UI dev server was crashing immediately after starting due to invalid webpack configuration:

Invalid options object. Dev Server has been initialized using an options object 
that does not match the API schema.
- options.server has an unknown property 'requestCert'
- options.server has an unknown property 'rejectUnauthorized'

Root Cause

Webpack dev server config had invalid HTTPS options that are not supported in the current webpack version.

Old config:

server: {
    type: 'https',
    requestCert: false,        // ❌ Not supported
    rejectUnauthorized: false  // ❌ Not supported
}

Solution

Simplified to use HTTP (HTTPS not needed for local development):

New config:

server: 'http'  // ✅ Simple and works

File Modified

ui/webpack-config.js - Simplified devServer config


Verification

# Start UI
cd ui && pnpm dev-server

# Test
curl http://localhost:9001

Expected: HTML response (UI loads)


Now Start Everything

./start.sh

Access:


Summary

Fixed webpack config → UI now starts successfully → No more connection refused! 🚀