self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Can't fetch issues via API

Open darrelajonas opened this issue 3 years ago • 9 comments

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

  1. Import Sentry postman collection
  2. Generate an internal integration auth token (with read access to issues and events)
  3. Configure postman to use the auth token
  4. Try running the 'List Project Issues' API endpoint

Expected Result

A JSON formatted list of issues to be returned

Actual Result

image

Event ID

No response

darrelajonas avatar Nov 08 '23 16:11 darrelajonas

Is the user for which you created the Auth Token a member of the org in question? Are they marked as a superuser?

azaslavsky avatar Nov 08 '23 16:11 azaslavsky

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

darrelajonas avatar Nov 08 '23 16:11 darrelajonas

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.

azaslavsky avatar Nov 09 '23 21:11 azaslavsky

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 🥀

getsantry[bot] avatar Dec 01 '23 08:12 getsantry[bot]

^ bump

darrelajonas avatar Dec 01 '23 09:12 darrelajonas

I would make sure to check the permissions of the API auth token to ensure it has permissions to access the org issues

hubertdeng123 avatar Dec 04 '23 21:12 hubertdeng123

OK I started again. Created an Auth Token for my own user account with full Admin permissions.

image

Then added the token as a Bearer token in Postman.

Tried fetching issues for a project. Got this:

image

darrelajonas avatar Dec 05 '23 10:12 darrelajonas

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/

hubertdeng123 avatar Dec 07 '23 00:12 hubertdeng123

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 🥀

getsantry[bot] avatar Dec 28 '23 08:12 getsantry[bot]