oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.43k stars 2.78k forks source link

invalid byte sequence for encoding "UTF8": 0x00 #15037

Open paulxuca opened 2 weeks ago

paulxuca commented 2 weeks ago

What version of Bun is running?

1.1.34+5e5e7c60f

What platform is your computer?

Linux 6.1.100+ x86_64 unknown

What steps can reproduce the bug?

I'm using pg (https://node-postgres.com/) and seeing a bunch of these errors randomly (Is not attributed to a specific sql query). The stack trace says the error originates from https://github.com/brianc/node-postgres/blob/95d7e620ef8b51743b4cbca05dd3c3ce858ecea7/packages/pg/lib/client.js#L535

What is the expected behavior?

Don't have these sporadic errors when using the pg client

What do you see instead?

No response

Additional information

No response

github-actions[bot] commented 2 weeks ago

Hello @paulxuca. Please provide a minimal reproduction using a GitHub repository, Replit, CodeSandbox, or provide a bulleted list of commands to run that reproduce this issue. Issues marked with needs repro will be closed if they have no activity within 3 days.