question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uploading sourcemaps issue: An organization slug is required (provide with --org)

See original GitHub issue

Hi,

I’m using these versions of sentry webpack plugin and cli

"@sentry/cli@^1.28.1":
  version "1.30.2"
  resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.30.2.tgz#ead724c661920acda9b37779613dab7b0be9d828"
  dependencies:
    https-proxy-agent "^2.1.1"
    node-fetch "^1.7.3"
    progress "2.0.0"
    proxy-from-env "^1.0.0"

"@sentry/webpack-plugin@^1.3.3":
  version "1.3.3"
  resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-1.3.3.tgz#017bd7a89c8c9277d79c6c5feb51c1e6c6832b1b"
  dependencies:
    "@sentry/cli" "^1.28.1"

My sentry.properties file looks like this

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

[auth]
token=<YourToken>

In webpack.config I’ve added plugin, where configFile is path to sentry.properties file

      new SentryCliPlugin({
        release: process.env.LAST_BUILD_TIME,
        configFile: process.env.SENTRY_PROPERTIES_FILE,
        include: './app/dist'
      }),

However, I always get this error below, but as you can see above I’ve added all required properties to sentry.properties file. Obviously sentry.properties file is correct because if I remove all lines I get different message error: http error: Authentication credentials were not provided. (401)

./node_modules/@sentry/cli/sentry-cli releases new 1520006165 error: An organization slug is required (provide with --org)

I’ve opened stackoverflow question earlier just in case I’m doing something wrong… https://stackoverflow.com/questions/49073088/issue-with-uploading-sourcemaps-with-sentry-webpack-plugin

Thanks for help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
nikolaspcommented, Apr 9, 2018

Hi @jan-auer, Thanks for answer. 😃 I’ll try this asap, but maybe you can do something with docs, it would be really helpful for others to see full .property example like you wrote above in README. I’ve seen just a partially config at https://docs.sentry.io/learn/cli/configuration/#properties-files, as you stated in readme and it’s my mistake that I’ve formatted wrongly .property file, but docs is really confusing, at least for me.

1reaction
Waltari10commented, Mar 10, 2020

For me defining project in .sentryclirc helped, even though it was complaining about the org.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: An organization slug is required (provide with --org) #60
Hi, trying to upload sourcemap to sentry, but catch this error: ERROR in Sentry CLI Plugin: Command failed: ...
Read more >
Sentry-cli sourcemaps upload - SDKs
So Im uploading source maps for typescript: sentry-cli releases files ... error: An organization slug is required (provide with --org).
Read more >
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 >
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
It will spot a variety of issues with source maps and cancel the upload if any are found. Defaults to false to prevent...
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