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

Next.js build failure - Invalid org token (http status: 401) #14181

Closed
3 tasks done
subodhpareek18 opened this issue Nov 5, 2024 · 4 comments
Closed
3 tasks done

Next.js build failure - Invalid org token (http status: 401) #14181

subodhpareek18 opened this issue Nov 5, 2024 · 4 comments
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@subodhpareek18
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.36.0 (also on 8)

Framework Version

React 18, Next 14.2.14

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Initialized sentry setup according to the docs with the help of the cli
  2. It updated next.config.mjs, created instrumentation files, client side provider component, etc
  3. Connected github repo to vercel and triggered a deploy

Expected Result

The build should have passed

Actual Result

The build fails with with the following error

Image

@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Nov 5, 2024
@andreiborza
Copy link
Member

Hey @subodhpareek18, thanks for writing in.

Does this happen when you build and run the project locally too?

@subodhpareek18
Copy link
Author

@andreiborza just tried building on my local, and the error is coming there too
Image

@andreiborza
Copy link
Member

@subodhpareek18 can you try regenerating an org auth token (see https://docs.sentry.io/account/auth-tokens/#organization-auth-tokens) and replacing the one in your .env.sentry-build-plugin file with the new one?

@subodhpareek18
Copy link
Author

@andreiborza I was able to successfully build and deploy the app after creating a new token as per your suggestion. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Archived in project
Development

No branches or pull requests

2 participants