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

Getting error about different URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application #2089

Closed
1 of 8 tasks
carestad opened this issue Jun 18, 2024 · 2 comments
Labels

Comments

@carestad
Copy link

CLI Version

2.32.1

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

Pop!_OS 22.04 LTS

Link to reproduction repository

No response

CLI Command

sentry-cli releases new jZVTDPTCSwNIkTsgMlnSn

Exact Reproduction Steps

  1. Upgraded Sentry from v7 to v8 for my next.js application, following the guide here
  2. Ran npm run build in my next.js application

Expected Results

Expected build to go through and work okay.

Actual Results

Error shown regarding different URL values, which I have never seen previously.

Logs

unhandledRejection Error: Command failed: /my/nextjs/application/node_modules/@sentry/cli-linux-x64/bin/sentry-cli releases new 1LtZEu3zkB0uhzqaJDFJ_
error: Two different url values supplied: `https://sentry.xyz` (from token), `https://sentry.io`.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jun 18, 2024
@carestad carestad changed the title error: Two different url values supplied: https://sentry.xyz (from token), https://sentry.io. Getting error about differne URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application Jun 18, 2024
@szokeasaurusrex
Copy link
Member

Hi @carestad, you are likely setting the URL to https://sentry.io somewhere in the configuration for the Sentry bundler plugin. Since the URL value is different from the URL encoded in your auth token, you are getting an error. Since the auth token already contains the URL, you do not need to manually provide it, so I would recommend removing the URL option from your configurations.

Please let me know whether that fixes your problem!

@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Jun 24, 2024
@carestad carestad changed the title Getting error about differne URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application Getting error about differnt URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application Jun 24, 2024
@carestad carestad changed the title Getting error about differnt URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application Getting error about different URL values supplied after upgrading Sentry client from v7 to v8 in a Next.js application Jun 24, 2024
@getsantry
Copy link

getsantry bot commented Jul 16, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jul 16, 2024
@getsantry getsantry bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants