Sentry-cli: Source map upload (v1.44.2) error: relative URL without a base

Created on 3 Jun 2019  路  5Comments  路  Source: getsentry/sentry-cli

Since the upgrade to sentry-cli v1.44.2 I have been getting an error (error: relative URL without a base) when using upload-sourcemaps.

It used to work just fine in v1.44.1 with the argument: --url-prefix '/home/ubuntu/server' which maps the source map to the node file on server.

Is there some way to make it work again in v1.44.2 with --url-prefix '/home/ubuntu/server' as it's blocking our CI/CD cycle?

Most helpful comment

Fix released as v1.44.3

All 5 comments

Thanks for reporting, we likely regressed as 1.44.2 included a change in how we validate sourcemap URLs. Will investigate.

This is also blocking our CI/CD

is there another url we can use https://sentry.io/get-cli/ to use 1.44.1 instead of the latest?

Workaround for now:

  1. create sentry-install.sh (v1.44.1)
  2. Replace install command in your CI/CD steps:

Replace install command
wget -O - https://sentry.io/get-cli/ | bashor curl -sL https://sentry.io/get-cli/ | bash
with
sentry-install.sh

Fix released as v1.44.3

I can confirm that it works with v1.44.3

Thanks for the quick fix!

Was this page helpful?
0 / 5 - 0 ratings