Can't fetch issues via API
Self-Hosted Version
23.11.0.dev0
CPU Architecture
x86_64
Docker Version
24.0.5, build ced0996
Docker Compose Version
2.23.0
Steps to Reproduce
- Import Sentry postman collection
- Generate an internal integration auth token (with read access to issues and events)
- Configure postman to use the auth token
- Try running the 'List Project Issues' API endpoint
Expected Result
A JSON formatted list of issues to be returned
Actual Result
Event ID
No response
Is the user for which you created the Auth Token a member of the org in question? Are they marked as a superuser?
The instructions I found online said to create an Internal Integration
Ref: https://www.postman.com/sentryio/workspace/sentry-api-collection/collection/314074-08877b7b-7cdf-49db-b558-3c1553367cfa
I'm not 100% sure, but I think those instructions assume you are on SaaS? The specific error you are getting implies you are not a member of the org you are trying to access, or otherwise lack sufficient privileges.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
^ bump
I would make sure to check the permissions of the API auth token to ensure it has permissions to access the org issues
OK I started again. Created an Auth Token for my own user account with full Admin permissions.
Then added the token as a Bearer token in Postman.
Tried fetching issues for a project. Got this:
At least we have some progress there. I'm not quite sure what your library does, since I'm not familiar with that, but can you try using curl as specified here? https://docs.sentry.io/api/events/list-a-projects-issues/
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀