Troubleshooting Sentry Sync Failure
Sync Failed with Error- Cancelling sync because 0 accounts discovered.
This error occurs when the API response for below API call gives empty result.
GET 'https://sentry.io/api/0/organizations/<OrganizationSlug>/users/'
To troubleshoot, please check the response of this API call using curl
command:
curl --request GET 'https://sentry.io/api/0/organizations/<OrganizationSlug>/users/' --header 'Authorization: Bearer <AuthToken>'
Replace the <OrganizationSlug>
and <AuthToken>
in above command with the values from the Sentry app configs. Note that we need to get the <AuthToken>
from AWS secret manager for this AppId, as the value is masked in the UI.
Run the command and check the response. If response is an empty array, then there are no users present.