sentry icon indicating copy to clipboard operation
sentry copied to clipboard

404 from Integration Platform installation API

Open Dhrumil-Sentry opened this issue 1 year ago • 9 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Feedback from Cloudflare:

We've been seeing some occasional issues with certain customers using the Sentry integration. One issue is with POSTing to this endpoint to retrieve a token: https://sentry.io/api/0/sentry-app-installations/{installationId}/authorizations/

We sometimes see it responding with a 404. What are the cases that would cause this to respond that way? One example installationId that I can find in our logs that returns a 404 is e63e4baf-9604-4545-80be-ea953863ef84

Let me know if you need any more info.

Expected Result

.

Actual Result

.

Product Area

Settings - Integrations

Link

No response

DSN

No response

Version

No response

Dhrumil-Sentry avatar Jun 09 '24 21:06 Dhrumil-Sentry

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

getsantry[bot] avatar Jun 19 '24 19:06 getsantry[bot]

Any timeline for this? We have several customer escalations for the list of Sentry projects not populating in the Workers Sentry Integration and it's because of this API.

Image

markjmiller avatar Jul 30 '24 20:07 markjmiller

@markjmiller I've scheduled our bug triage crew to start investigations on this in late Aug.

leedongwei avatar Aug 07 '24 20:08 leedongwei

@leedongwei any updates on this?

markjmiller avatar Sep 04 '24 22:09 markjmiller

Thanks for the reminder. There's competing priorities for the triage crew, I will get it scheduled again.

leedongwei avatar Sep 10 '24 06:09 leedongwei

any progress on this?

wrfengg avatar Sep 23 '24 14:09 wrfengg

Hi @markjmiller, @wrfengg. I've started looking into this issue, and the only obvious way I can see it returning a 404 is when we fail to query an active Sentry App installation with the given UUID.

One example installationId that I can find in our logs that returns a 404 is e63e4baf-9604-4545-80be-ea953863ef84

This installation appears to have been soft deleted as of December 2023 which likely explains the 404s you're getting for this particular one.

Any timeline for this? We have several customer escalations for the list of Sentry projects not populating in the Workers Sentry Integration and it's because of this API.

Is there any chance the users affected by this were attempting to reinstall the integration after deleting it?

Any additional context you could provide would be greatly appreciated.

GabeVillalobos avatar Sep 23 '24 18:09 GabeVillalobos

Hi @GabeVillalobos,

Most of the customers experiencing this behavior are installing the integration for the first time, so it would be unlikely that they are trying to reinstall after deleting. I'm working to get a fresh set of logs for you to confirm on your end.

shaunpersad avatar Sep 24 '24 14:09 shaunpersad

@shaunpersad Any updates on the logs? Also, do you have up-to-date documentation on setting up the integration? The previously linked docs are now showing a 404: https://developers.cloudflare.com/workers/observability/sentry-integration/

I have a test worker running and was going to try to triage this issue further.

GabeVillalobos avatar Oct 04 '24 16:10 GabeVillalobos

@GabeVillalobos @markjmiller Hi, we are unable to turn on the integration with Sentry in our Cloudflare workers. I don't understand why this issue is still open, it looks like there is no idea what is wrong and where (Cloudflare or Sentry side?). Can you describe propose some plan how to solve the issues? I think there are plenty of Cloudflare customers having the same problem based on communication on Discord, so it's not just us.

Koubek avatar Apr 05 '25 09:04 Koubek

@Koubek I recommend following up with cloudfare support on this. From the comments above our engineer tried to debug this but needed more logs to be able to investigate. We have not received response yet.

sentaur-athena avatar Apr 07 '25 17:04 sentaur-athena

@markjmiller @shaunpersad Hi I'm taking a look at this and it seems like there are two reported issues

  1. 404s from the authorizations endpoint when attempting to install the cloudflare integration for first time
    • The only reason I can see where we will return a 404 from that endpoint is if we can't find the given SentryAppInstallation from the installation_id
      • When users choose to install the integration on one of their orgs we then create an installation and give that back
      • So I'm not sure why this case is happening, potentially because the installation was deleted from the user's side already (?)
  2. Projects dropdown not populating after connecting Sentry <-> Cloudflare
    • For this one I wasn't able to repro but I did face something potentially similar(?) with the project connect not working and disabling Adblock helped fix it

FWIW I was able to install the integration without too much hassle so I'm curious if there's any more data like logs or ids or error messages I can look at, that would be helpful :^]

Also a thing to try if the installations are being wonky is:

  1. Go to Sentry's Cloudflare integration page and click uninstall
    • This action should delete the installation from Sentry and Cloudflare's side so users can retry the installation from a clean slate

Christinarlong avatar Apr 16 '25 18:04 Christinarlong

Thanks for investigation @Christinarlong. Closing the issue since it doesn't repro.

Others, please feel free to open a ticket with details if this happens again.

sentaur-athena avatar May 05 '25 17:05 sentaur-athena