Our Sentry instance is accessible under two domains: one is private and only reachable from inside the company network, the other is accessible from internet for error reporting and some api calls.
When trying to upload sourcemaps using sentry-cli, there is a call to /api/0/organizations/<org>/chunk-upload/ returning a config containing a field url.
sentry-cli then uses this url instead of the one specified in SENTRY_URL to send file chunks, leading to an error because this url is not reachable in our case because it's the internal url.
Setting system.upload-url-prefix server side could work but it'll break the upload from the other domain.
Add a configuration in sentry-cli to override the upload url, something like defaults.upload_url?
Another option is to force the use of defaults.url but I'm not sure it's a good idea.
@alex-fournier -- Working on this...
Most helpful comment
@alex-fournier -- Working on this...