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

Bun FileSystemRouter crashes with query strings #16443

Open
Creationsss opened this issue Jan 16, 2025 · 1 comment
Open

Bun FileSystemRouter crashes with query strings #16443

Creationsss opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working bun.js Something to do with a Bun-specific API

Comments

@Creationsss
Copy link

Creationsss commented Jan 16, 2025

What version of Bun is running?

1.1.43+76800b049

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64, seems to happen on linux too

What steps can reproduce the bug?

Using a bun FileSystemRouter and Bun.serve make a request with a query like ?real=rea ; causes bun to crash
Repo

What is the expected behavior?

The query string should be parsed or rejected gracefully without causing the server to crash

What do you see instead?

Image

Additional information

Seems just using Bun.serve causes it to crash too

Stack Trace

Bun v1.1.43 (76800b0) on windows x86_64 [RunCommand]

panic: @memcpy arguments alias

Features: tsconfig_paths, abort_signal, dotenv, http_server, jsc, transpiler_cache, tsconfig, tsconfig

Sentry Issue: BUN-2AF

@Creationsss Creationsss added bug Something isn't working needs triage labels Jan 16, 2025
@wont-stream
Copy link

I'm able to recreate this inconsistently, might be something deeper?

@RiskyMH RiskyMH added bun.js Something to do with a Bun-specific API and removed needs triage labels Jan 17, 2025
@RiskyMH RiskyMH changed the title Bun crashes with invalid querys Bun FileSystemRouter crashes with query strings Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun.js Something to do with a Bun-specific API
Projects
None yet
Development

No branches or pull requests

3 participants