getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.7k stars 4.05k forks source link

Integration interupted with Vercel and error on integration configuration page #32905

Open dev-m-work opened 2 years ago

dev-m-work commented 2 years ago

Environment

SaaS (https://sentry.io/)

Version

"@sentry/nextjs": "^6.19.1"

Steps to Reproduce

Go to https://sentry.io/settings/m-work/integrations/vercel/126395/

Expected Result

See the configuration panel of the integration

Actual Result

Error page... And the integration with Vercel is broken, it crashed the build on Vercel stating that:

error: API request failed

14:14:53.558 | caused by: sentry reported an error: Authentication credentials were not provided. (http status: 401)

When I go have a look the env vars, the api has been removed...

ValentinH commented 2 years ago

Same problem here. Also experiencing #32902

kevva commented 2 years ago

Also got a similar problem. I suddenly started to get the following error while deploying which breaks my builds:

error: An organization slug is required (provide with --org)

I verified that the environment variable (SENTRY_ORG) is there still as well.

github-actions[bot] commented 2 years ago

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 label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

pablopunk commented 2 years ago

I started to have this today on Vercel. I can't reproduce it locally.

If I redeploy a vercel deployment that previously worked, it does still work. A new one always fails.

I added manually all my env vars to Vercel just in case but no luck

pablopunk commented 2 years ago

Update. This seems to be failing only on side branches. I just tried pushing into main and it does work

pablopunk commented 2 years ago

Update x2 ✅ Solved for me:

The Sentry integration on Vercel writes env variables only to production branches, so I went to edit manually ALL SENTRY ENV VARS on my vercel project settings and toggle ON the "preview" and "development" environment on each one:

Captura de Pantalla 2022-05-31 a las 13 13 42

saifalfalah commented 2 years ago

@pablopunk this worked for me. Thanks!