2 people reported

All time, since Sep 29.

UDP error handler signature mismatch

“A handler written from the declaration gets the error as socket and undefined as error.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/4733/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

UDP socket error handler called with (error), types declare (socket, error). Handlers written from bun-types get the error as socket and undefined as error; matching the runtime fails type-check.

Is this your bug?

File my report
Where
Bun.udpSocket
Error text
error TS2339: Property 'code' does not exist on type 'Socket<"buffer">'.
Versions
1.4.3-canary.1 to 1.4.3
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. Bun.udpSocket: error handler types say (socket, error), runtime calls (error)#46052
  2. Bun.udpSocket: the error handler gets (error), bun-types declares (socket, error)#44274

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.