Uploading sourcemaps issue: An organization slug is required (provide with --org)
See original GitHub issueHi,
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:
- Created 6 years ago
- Reactions:10
- Comments:10 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
.propertyexample 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.propertyfile, but docs is really confusing, at least for me.For me defining project in .sentryclirc helped, even though it was complaining about the org.