error: An organization slug is required (provide with --org)

See original GitHub issue

Hi, trying to upload sourcemap to sentry, but catch this error:

    ERROR in Sentry CLI Plugin: Command failed: /node_modules/@sentry/cli/sentry-cli releases new <version>
    error: An organization slug is required (provide with --org)

There is how i use plugin:

new SentryCliPlugin({
  release: require(root('package.json')).version,
  include: '.',
  ignoreFile: root('.gitignore'),
  configFile: root('src/site/sentry.properties'),
  ignore: ['node_modules', 'webpack.config.js'],
}),

And there is sentry.properties file:

defaults.url = https://sentry.io/
defaults.org = <org slug>
defaults.project = <project>

auth.token = <token>

Tryed to set env variable directly (export SENTRY_ORG= <org slug>) and run webpack again, but catch new error:

    ERROR in Sentry CLI Plugin: Command failed: /node_modules/@sentry/cli/sentry-cli releases new <version>
    error: project not found

Version: "@sentry/webpack-plugin": "^1.5.2",

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:27
  • Comments:32 (12 by maintainers)

github_iconTop GitHub Comments

43reactions
kamilogorekcommented, May 23, 2018

Hey @rimlin, per docs https://docs.sentry.io/learn/cli/configuration/

The config file uses standard INI syntax.

Therefore your config should look like this:

[defaults]
url = https://sentry.io/
org = <org slug>
project = <project>

[auth]
token = <token>
16reactions
AdamDiamentcommented, Jun 21, 2021

For others where the solution posted here didn’t work, my CEO changed the org id and didn’t tell me, check the org id you are passing in the .properties file is actually still correct!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to Generate Signed Apk - An organization slug is ...
So I was searching how I could add the organization slug to my source map uploads. But this error wasn't about the event,...
Read more >
Sentry-cli sourcemaps upload - SDKs
error: An organization slug is required (provide with --org). So, Im providing organization slug and receive another error:.
Read more >
error: An organization slug is required (provide with --org)
Hi, trying to upload sourcemap to sentry, but catch this error: ERROR in Sentry CLI Plugin: Command failed: ...
Read more >
@sentry/webpack-plugin - npm
const SentryCliPlugin = require('@sentry/webpack-plugin'); const config ... org, string, optional, The slug of the Sentry organization ...
Read more >
Using Sentry - Expo Documentation
Sentry is a crash reporting platform that provides you with "real-time insight into ... "config": { "organization": "your sentry organization slug here", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found