-
Notifications
You must be signed in to change notification settings - Fork 878
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
v8.3.0 throws "SonicBoom supports only file descriptors and files" #1502
Comments
Can you tell me more about the environment you are executing this? I've executed that kind of code prior to release and everything seemed fine. |
Same was happening to me in a GitHub workflow using ubuntu-latest during unit tests. Will investigate in a bit to see if it is the args I'm passing to Pino that is causing the issue. |
I have isolated the case where it fails in a test. All I did was pass the logger to a function and call one of its methods there. This is the error I get:
Here is a PR in a dummy repo that adds breaking code in 8.3.0 (checks pass, 8.2.0) Here is the dependabot PR to update this to 8.3.0 (failing checks, 8.3.0) |
I'm running inside a Next.js app and testing via Vitest. Here's a minimal reproduction via Vitest: https://stackblitz.com/edit/vitest-dev-vitest-zsjquq |
Ah, I understand the problem now. It's because you are creating a new pino instance within a worker. (every test in vite is created in a worker). I'll fix this as soon as I can. The fix should be to change |
Could you test #1503? This should work. |
That change fixed it for me. Thanks! |
Hello, the problem persists on v8.4.0 when I try to use ava using asynchronous logging to stdout, So i force the value of
|
Could you create a repository with a full repro? The latest fix should cover your case too. |
I've create simple fastify app to reproduce the problem: I'm able to run ts-node and ava when changing the fd to 1 manually: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After upgrading from 8.2.0 to 8.3.0 my very basic usage of
pino
is now throwing:My code is:
Rolling back to 8.2.0 makes the problem go away. I looked at the diff between 8.2.0 and 8.3.0 and I can't figure out what's wrong. Could something in the
sonic-boom
package upgrade be causing this?The text was updated successfully, but these errors were encountered: