-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[@sentry/bun] Recent update breaks bun integration #15827
Comments
@ShaneIsrael thanks for writing in. You said the version you were using was |
@AbhiPrasad Same exact error with 9.9.0 as well. |
Could you share how you import and initialize Sentry? Also how you are running bun (in the CLI)? Just want to see what the exact starting conditions are. |
The server is built in a docker image.
// entrypoint.sh
// server.ts file
// in the src/index file
|
I should note, nothing in any of these files I shared has changed code wise in probably 2 months and we've had new builds and deploys going out daily without issue until this morning. |
Did the version of bun change? Looks like https://bun.sh/blog/bun-v1.2.6 came out today. If you force pin to Bun v1.2.5, do you get the same error? |
It only happens on the new version of bun released today. It looks like a change related to https://bun.sh/blog/bun-v1.2.6#faster-express-fastify broke the sentry integration |
Ah that seems like it. We should file a bug with bun! @ShaneIsrael or @paulxuca could you open a GH issue with them and fill in the details about your apps? I can also leave a comment there too. |
Sorry for the late reply, been busy trying to get a work around our. I did
end up pinning bun to v1.2.3 for the time being is working. I think this
bun update may have also broke Express. Thus my late responses. As soon as
I switch v1.2.3 Express seems to be working fine. I haven't tested Sentry
yet but will do so in the morning but I'm guessing that will solve the
problem.
Will try to open an issue with them as well.
…On Tue, Mar 25, 2025, 4:47 PM Abhijeet Prasad ***@***.***> wrote:
Ah that seems like it. We should file a bug with bun!
@ShaneIsrael <https://github.com/ShaneIsrael> or @paulxuca
<https://github.com/paulxuca> could you open a GH issue with them and
fill in the details about your apps? I can also leave a comment there too.
—
Reply to this email directly, view it on GitHub
<#15827 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMZPDZVFY7OVBQAH2DW2WD2WHMI7AVCNFSM6AAAAABZYLAPZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJSG4YTEMBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: AbhiPrasad]*AbhiPrasad* left a comment
(getsentry/sentry-javascript#15827)
<#15827 (comment)>
Ah that seems like it. We should file a bug with bun!
@ShaneIsrael <https://github.com/ShaneIsrael> or @paulxuca
<https://github.com/paulxuca> could you open a GH issue with them and
fill in the details about your apps? I can also leave a comment there too.
—
Reply to this email directly, view it on GitHub
<#15827 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMZPDZVFY7OVBQAH2DW2WD2WHMI7AVCNFSM6AAAAABZYLAPZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJSG4YTEMBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have made a report here: oven-sh/bun#18496 |
The current workaround is to either revert Bun to import * as Sentry from '@sentry/bun';
Sentry.init({
dsn: '__MY_DSN__',
integrations: function (integrations) {
// integrations will be all default integrations
return integrations.filter(function (integration) {
return integration.name !== "BunServer";
});
},
tracesSampleRate: 1.0,
}); |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/bun
SDK Version
8.50.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Expected Result
The application stands up without issue and sentry initializes correctly.
Actual Result
The application crashes with a TypeError error.
The text was updated successfully, but these errors were encountered: