Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

error: Two different url values supplied: #465

Closed

Description

@furlongmatt

Environment

What version are you running? Etc.

  • "@sentry/vite-plugin": "^2.10.3",
  • "@sentry/vue": "^7.94.1",

Steps to Reproduce

      sentryVitePlugin({
        authToken: env.VITE_SENTRY_AUTH_TOKEN,
        org: 'sentry',
        project: 'call-center-front-end',
        url: 'https://INTERNAL_URL_HERE',
        debug: true,
      }),

Expected Result

Source maps uploaded to a our self-hosted sentry

Actual Result

What actually happened. Maybe a screenshot/recording? Maybe some logs?

We keep getting this error: error: Two different url values supplied: `` (from token), https://INTERNAL_URL_HERE

Starting: NPM Install and Build - front-end
==============================================================================
Task         : Command line
Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version      : 2.231.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/2c145116-a596-4e1b-adc2-bbbf87f7ebd3.sh

added 340 packages, and audited 341 packages in 11s

116 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

added 17 packages, removed 11 packages, changed 35 packages, and audited 347 packages in 13s

116 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> [email protected] build
> vite build

vite v5.0.12 building for production...
transforming...
✓ 584 modules transformed.
rendering chunks...
computing gzip size...
[sentry-debug-id-upload-plugin] Command failed: /home/vsts/work/1/s/front-end/node_modules/@sentry/cli-linux-x64/bin/sentry-cli releases new 7f47f0b545688275e2ecf77a9a7d069bb5ea16d9
error: Two different url values supplied: `` (from token), `https://INTERNAL_URL_HERE`./

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Jan 23, 2024
  2. lforst commented on Jan 23, 2024

    @lforst

    Hi, I recommend leaving away the url option in the plugin. The url is already encoded in the auth token. Just saw that the token contains ''. I need to think about this.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Jan 23, 2024
  4. lforst commented on Jan 23, 2024

    @lforst

    Okay, I believe the issue here is that you are on a buggy version of self-hosted Sentry, that is configured in an unlucky way. Our recommendation here is for you to upgrade your self-hosted instance to the latest version and make sure you have the system.url-prefix option set in your self-hosted instance. Then you have to generate a new auth token which should have a properly encoded URL. After switching it out I also recommend removing the url option in the plugin because the url is already encoded in the auth token.

  5. furlongmatt commented on Jan 23, 2024

    @furlongmatt
    Author

    Okay, I believe the issue here is that you are on a buggy version of self-hosted Sentry, that is configured in an unlucky way. Our recommendation here is for you to upgrade your self-hosted instance to the latest version and make sure you have the system.url-prefix option set in your self-hosted instance. Then you have to generate a new auth token which should have a properly encoded URL. After switching it out I also recommend removing the url option in the plugin because the url is already encoded in the auth token.

    This looks to have done the trick. Appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions