if we run
bun simple.mjs
node simple.mjs
deno run -A simple.mjs
then the tests are all passing.
if we run
bun server.mjs
and then run
bun repro.mjs /
everything is ok
STATUS: 200
CONTENT TYPE: text/plain;charset=utf-8
RAW BODY: {"name":"bbb"}
but if we run
bun repro.mjs /fail1
or
bun repro.mjs /fail2
or
bun repro.mjs /fail3
we see the error
STATUS: 500
CONTENT TYPE: text/plain;charset=utf-8
RAW BODY: FormData parse error missing final boundary
if we use deno to run the server we don't see errors and get an empty json object back in all the cases where it fails for bun
deno run -A server.mjs
bun repro.mjs
STATUS: 200
CONTENT TYPE: text/plain;charset=UTF-8
RAW BODY: {"name":"bbb"}
bun repro.mjs /fail1
STATUS: 200
CONTENT TYPE: text/plain;charset=UTF-8
RAW BODY: {}
bun repro.mjs /fail2
STATUS: 200
CONTENT TYPE: text/plain;charset=UTF-8
RAW BODY: {}
bun repro.mjs /fail3
STATUS: 200
CONTENT TYPE: text/plain;charset=UTF-8
RAW BODY: {}