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

Bun & Railpack not supported #15747

Open
3 tasks done
docimin opened this issue Mar 20, 2025 · 9 comments
Open
3 tasks done

Bun & Railpack not supported #15747

docimin opened this issue Mar 20, 2025 · 9 comments
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK

Comments

@docimin
Copy link

docimin commented Mar 20, 2025

Is there an existing issue for this?

Prior discussion on Discord: https://discord.com/channels/621778831602221064/1351742239360942171

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/nextjs

SDK Version

8.55.0

Framework Version

15.2.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  • Use bun install instead of npm/pnpm/yarn
  • Get error while compiling (in CI)

Expected Result

  • use bun install
  • Deployment finished successfully

Actual Result

  • use bun install
  • Deployments fails with sentry reported an error: Invalid org token (http status: 401)
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 20, 2025
@github-actions github-actions bot added the Package: nextjs Issues related to the Sentry Nextjs SDK label Mar 20, 2025
@andreiborza
Copy link
Member

Hi @docimin, thanks for filing this.

We previously discussed this a bit on discord. We already ruled out that the token is invalid (source maps are uploaded fine). The 401 comes from sentry-cli release creation. Further, it seems to work fine with pnpm.

cc @lforst @szokeasaurusrex

@docimin
Copy link
Author

docimin commented Mar 20, 2025

I'm a tiny bit unsure, since I am having issues regarding nixpacks & railpack. But the issue might also be because of Railpack (https://railpack.com/), which is the new Nixpacks (used by software like Dokploy to build apps automatically).

@lforst
Copy link
Member

lforst commented Mar 20, 2025

Can we get more info about the setup? This being related to bun doesn't make any sense imo.

What self-hosted version are you on for example?

@szokeasaurusrex
Copy link
Member

Maybe Sentry CLI is using a different token from what you are expecting? Please check if there are any global .sentryclirc Sentry CLI config files (e.g. in your home directory); if so, we might be picking up the token from there. You could try renaming these files to something else temporarily and check whether that solves your problem

@docimin
Copy link
Author

docimin commented Mar 20, 2025

Hey @lforst & @szokeasaurusrex !

  • The app being built is Next.js (version doesn't matter, used was 15.2.2)
  • Self hosted version 25.3.0.dev0 (from dashboard)
  • I don't use .sentryclirc
  • After switching from Railpack & bun to Nixpacks & pnpm, it started to work. (bun with nixpacks is a little messy)

It shouldn't have anything to do with my sentry version, me and Andrei did test some stuff and on his end it all worked out. Building locally using bun also did work, however I couldn't get it to build on Dokploy.

Thinking about it, the issue might more be towards Railpack than bun, however it's a bit hard for me to test this.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 20, 2025
@docimin docimin changed the title Bun not supported Bun & Railpack not supported Mar 20, 2025
@lforst
Copy link
Member

lforst commented Mar 21, 2025

I think we need concrete repro here. This is weird.

@docimin
Copy link
Author

docimin commented Mar 21, 2025

I will try and make one later when I have the time for it.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 21, 2025
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Mar 24, 2025
@docimin
Copy link
Author

docimin commented Mar 26, 2025

Hello!

I made a repro.
So far I can only reproduce it with bun + railpack

The logs: https://gist.github.com/docimin/6c91a3d34aef5438c2bb934aef485eb9
The repo: https://github.com/docimin/sentry-repro-bun

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 26, 2025
@s1gr1d
Copy link
Member

s1gr1d commented Mar 27, 2025

Thanks for the reproduction! We're going to have a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
Status: No status
Development

No branches or pull requests

5 participants