sentry
sentry copied to clipboard
404 from Integration Platform installation API
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
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
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.
@markjmiller I've scheduled our bug triage crew to start investigations on this in late Aug.
@leedongwei any updates on this?
Thanks for the reminder. There's competing priorities for the triage crew, I will get it scheduled again.
any progress on this?
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.
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 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 @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 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.
@markjmiller @shaunpersad Hi I'm taking a look at this and it seems like there are two reported issues
- 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
SentryAppInstallationfrom theinstallation_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 (?)
- The only reason I can see where we will return a 404 from that endpoint is if we can't find the given
- 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:
- 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
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.