#Ubuntu/Linux Bun.serve throwing Segmentation error/INVALID_ARG_TYPE

1 messages · Page 1 of 1 (latest)

soft stratus
#

Follow-up from the following issue here. I seem to get INVALID_ARG_TYPE thrown when using a simple Bun.serve script on Ubuntu/Linux.
Code:

Bun.serve({
    port: 3000,
    async fetch(req: Request) {
        return new Response("Hello World");
    }
})

Error:

root@ubuntu-server:~/Testing# bun run index.ts
1 | Bun.serve({
  port: 3000,
  async fetch(req) {
    return new Response("Hello World");
  }
});
   ^
TypeError: 湕捩摯⁥潨瑳慮敭⁳畭瑳愠牬慥祤戠⁥湥潣敤⁤潦⁲潮⹷渊睥唠䱒椨灮瑵⸩潨瑳慮敭猠潨汵⁤潤琠敨琠楲正.湉整湲污挠湯楳瑳湥祣攠牲牯›慷捴敨⁲畭整⁸獩氠捯敫⁤桷湥椠⁴桳畯摬渠瑯戠⹥䤀呎㐶呟彏半䅖啌⡅半
 code: "ERR_INVALID_ARG_TYPE"

      at À Àsting/index.ts:1:0
GitHub

What version of Bun is running? 1.0.3+25e69c71e70ac8a0a88f9cf15b4057bd7b2a633a What platform is your computer? Linux 5.15.0-78-generic x86_64 x86_64 What steps can reproduce the bug? Run bun init. ...

#

Apparently it can't be translated haha

soft stratus
#

Bump

unique halo
soft stratus
#

I did it was some gibberish

#

The main problem isn’t the text it outputs though. It seems to be a CPU compatibility problem

oak lion