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

Prisma crashing when logging is enabled #15291

Open
ilijapuaca opened this issue Nov 20, 2024 · 0 comments
Open

Prisma crashing when logging is enabled #15291

ilijapuaca opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working needs repro Needs an example to reproduce node.js Compatibility with Node.js APIs

Comments

@ilijapuaca
Copy link

What version of Bun is running?

1.1.36

What platform is your computer?

Darwin 24.1.0 arm64 arm

What steps can reproduce the bug?

In our application, enabling logging when instantiating Prisma client like so causes a crash on application startup

const prisma = new PrismaClient({datasourceUrl: config.url, log: ['info']});

I have tried to create a minimum example to reproduce the issue with, but it does not happen in a fresh project. I tried stripping down any pieces that could have to do with prisma interactions without any luck

What is the expected behavior?

Application not crashing

What do you see instead?

The application crashes on startup (or when trying to log anything) with the following error and no stack trace

error: Call JavaScript callback failed in threadsafe function
 code: "FunctionExpected"

Additional information

I'd be happy to provide any additional information here, or help solve the issue, but there is very little to go by based on the error message output when the crash happens. Logging used to work fine for a while before the issue started happening, but it's hard to pinpoint the exact time it stopped and whether bun version upgrade is somehow involved.

We're running the latest version of [email protected]

@ilijapuaca ilijapuaca added bug Something isn't working needs triage labels Nov 20, 2024
@nektro nektro added node.js Compatibility with Node.js APIs needs repro Needs an example to reproduce and removed needs triage labels Nov 21, 2024
@oven-sh oven-sh deleted a comment from github-actions bot Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro Needs an example to reproduce node.js Compatibility with Node.js APIs
Projects
None yet
Development

No branches or pull requests

2 participants