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

TypeError code: "ERR_INVALID_ARG_TYPE" with very simple script #6880

Closed
woxxo opened this issue Nov 3, 2023 · 1 comment
Closed

TypeError code: "ERR_INVALID_ARG_TYPE" with very simple script #6880

woxxo opened this issue Nov 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@woxxo
Copy link

woxxo commented Nov 3, 2023

What version of Bun is running?

1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157

What platform is your computer?

Linux vm79243 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

What steps can reproduce the bug?

const server = Bun.serve({
  port: 8008,
  fetch(req, srv) {
    console.log(req, srv);
    return new Response('Bun!\n' + new Date().getMilliseconds());
  },
});
console.log(`Listening on http://localhost:${server.port} ...`);

What is the expected behavior?

~/js> bun server-bun.js
Listening on http://localhost:8008 ...

What do you see instead?

image

Additional information

The same script is working as expected with the same Bun version on this system:
Linux 6.5.4-1-default #1 SMP PREEMPT_DYNAMIC Wed Sep 20 05:07:04 UTC 2023 (fdd7e9e) x86_64 x86_64 x86_64 GNU/Linux

@woxxo woxxo added the bug Something isn't working label Nov 3, 2023
@Jarred-Sumner
Copy link
Collaborator

Duplicate of #3312

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #3312 Nov 7, 2023
@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants