getsentry / sentry-cli

A command line utility to work with Sentry.
https://docs.sentry.io/cli/
BSD 3-Clause "New" or "Revised" License
894 stars 221 forks source link

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

Open carestad opened 1 month ago

carestad commented 1 month ago

CLI Version

2.32.1

Operating System and Architecture

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`.
szokeasaurusrex commented 4 weeks ago

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[bot] commented 1 week ago

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 🥀