Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Error: SentryCLI failed to set commits #80

Open
michaelmior opened this issue Mar 31, 2023 · 3 comments
Open

Error: SentryCLI failed to set commits #80

michaelmior opened this issue Mar 31, 2023 · 3 comments

Comments

@michaelmior
Copy link

Steps to Reproduce

  1. Created internal integration in Sentry.
  2. Added the Sentry integration via the Netlify UI with the org slug, repo slug, and auth token.
  3. Push a commit to the main branch.

Expected Result

Build would be successfully deployed and reported.

Actual Result

The deploy fails with the error below.

Error: SentryCLI failed to set commits. You likely need to set up a repository or repository integration.
Read more: https://docs.sentry.io/workflow/releases/?platform=python#install-repo-integration
@michaelmior
Copy link
Author

It turns out the mistake was mine. I missed a permission step in the docs and did not set the Read permission for Organization in the Sentry integration. I was able to figure it out by seeing that I get a 403 when running set-commits locally with the Sentry CLI.

However, I would argue that the plugin could provide a better error message here. It seems like it should be possible to specify the error is a Sentry API auth issue.

@razzeee
Copy link

razzeee commented Apr 11, 2023

Hrm, I'm getting that error and have Read set on Organization

@CristyTarantino
Copy link

I'm getting that error and have Read set on Organization too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants