sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

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

Open carestad opened this issue 1 year ago • 1 comments

CLI Version

2.32.1

Operating System and Architecture

  • [ ] macOS (arm64)
  • [ ] macOS (x86_64)
  • [ ] Linux (i686)
  • [X] 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`.

carestad avatar Jun 18 '24 08:06 carestad

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!

szokeasaurusrex avatar Jun 24 '24 07:06 szokeasaurusrex

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[bot] avatar Jul 16 '24 07:07 getsantry[bot]