HarperFast / HarperFast/harper

Bun & Vite request failures

Open
#540 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 2h
Merged PRs (30d)
205

Description

Bun will throw this whenever you access http://localhost:9926/ with Vite:
```
[http/1] [error]: TypeError: null is not an object (evaluating 'req.url')
at handle (/Users/chris/projects/harper-doom/node_modules/.pnpm/vite@8.0.8_@types+node@25.6.0_yaml@2.8.3/node_modules/vite/dist/node/chunks/node.js:6108:32)
at app (/Users/chris/projects/harper-doom/node_modules/.pnpm/vite@8.0.8_@types+node@25.6.0_yaml@2.8.3/node_modules/vite/dist/node/chunks/node.js:6053:8)
at (unknown:15:70)
at http (/Users/chris/projects/harper/dist/server/REST.js:71:24)
at (/Users/chris/projects/harper/dist/server/REST.js:322:16)
at authentication (/Users/chris/projects/harper/dist/security/auth.js:345:32)
at async (/Users/chris/projects/harper/dist/server/http.js:571:48)
at processTicksAndRejections (native:7:39)
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by accessing http://localhost:9926/ with Bun and Vite, then start at dist/server/REST.js:71 and the related call around line 322 shown in the trace. Check how the request reaches Vite's node.js handler; done means the request no longer throws the null req.url error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, vite
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.